zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

user_home_path.c
Go to the documentation of this file.
1  /*
2  *
3  * Copyright (c) 2011-2015
4  * name : Francis Banyikwa
5  * email: mhogomchungu@gmail.com
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include <pwd.h>
21 #include "includes.h"
22 
24 {
25  return String_1( getpwuid( uid )->pw_dir,"/",NULL ) ;
26 }
27 
29 {
30  return String( getpwuid( uid )->pw_name ) ;
31 }
zuluCryptGetUserHomePath
string_t zuluCryptGetUserHomePath(uid_t uid)
Definition: user_home_path.c:23
StringType
Definition: String.c:49
String
string_t String(const char *cstring)
Definition: String.c:318
String_1
string_t String_1(const char *cstring,...)
Definition: String.c:363
includes.h
zuluCryptGetUserName
string_t zuluCryptGetUserName(uid_t uid)
Definition: user_home_path.c:28