Article View: pl.comp.lang.c
Article #308569Re: Jak znaleźć katalog użytkownika pod Windows?
From: keiichi
Date: Wed, 18 May 2016 14:25
Date: Wed, 18 May 2016 14:25
17 lines
1403 bytes
1403 bytes
W dniu 2016-05-18 o 12:27, Borneq pisze: > np.c:\Users\Andrzej\ > pod Linuxem jest to > > #include <pwd.h> > #include <unistd.h> > > struct passwd *pw = getpwuid(getuid()); > string homedir = pw->pw_dir; > > Ale chcę napisać program działający tu i tu. #if albo użyj jakiejś warstwy abstrakcji (boost, Qt, itp.), np.: boost::filesystem::current_path() Pozdrawiam
Technical Details
Message-ID:
<nhhu0j$c7o$1@node2.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<nhhg1r$t4i$1@node2.news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: keiichi <keiichi100@poczta.USUNTO.pl> Newsgroups: pl.comp.lang.c Subject: Re: Jak znaleźć katalog użytkownika pod Windows? Date: Wed, 18 May 2016 16:25:21 +0200 Organization: ATMAN - ATM S.A. Lines: 18 Message-ID: <nhhu0j$c7o$1@node2.news.atman.pl> References: <nhhg1r$t4i$1@node2.news.atman.pl> NNTP-Posting-Host: staticline3273.toya.net.pl Mime-Version: 1.0 X-Trace: node2.news.atman.pl 1463581523 12536 217.113.238.157 (18 May 2016 14:25:23 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Wed, 18 May 2016 14:25:23 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 In-Reply-To: <nhhg1r$t4i$1@node2.news.atman.pl> X-Antivirus: avast! (VPS 160518-0, 2016-05-18), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit