🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #16521

Re: PWD

#16521
From: J.A. Gutierrez
Date: Fri, 14 Apr 2000 00:00
13 lines
1226 bytes
webmaster MTG <webmaster@mtgsystem.com> wrote:
: Alguien sabe c�mo obtener el directorio home del usuario actual o de
: cualquier otro usuario desde C ?

pwd = getpwuid ( getuid () )
home = pwd->pw_dir;


-- 
PGP and other useless info at      \                 Oh, show us the way
http://www.cps.unizar.es/~spd/      \             to the next whisky bar
finger://daphne.cps.unizar.es/spd    \                      Weill/Bretch
es doloroso ser sabio y descubrir la sopa de ajo                   (Pla)
Technical Details
Message-ID: <8d71ho$71h$2@news.unizar.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38F6FFF9.1110E578@mtgsystem.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,adc6ed5cfcc3b77d
X-Google-Attributes: gidf86c8,public
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Subject: Re: PWD
Date: 2000/04/14
Message-ID: <8d71ho$71h$2@news.unizar.es>
X-Deja-AN: 611081641
Content-Transfer-Encoding: 8bit
References: <38F6FFF9.1110E578@mtgsystem.com>
Content-Type: text/plain; charset=ISO-8859-1
X-Complaints-To: usenet@news.unizar.es
X-Trace: news.unizar.es 955713912 7217 155.210.152.20 (14 Apr 2000 12:05:12 GMT)
Organization: Rank
Mime-Version: 1.0
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (IRIX/6.2 (IP22))
NNTP-Posting-Date: 14 Apr 2000 12:05:12 GMT
Newsgroups: es.comp.os.linux.programacion