This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
ladybird
Watch
1
Star
0
Fork
You've already forked ladybird
0
mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced
2025-01-24 18:24:45 -05:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
43a6c70c2a
ladybird
/
Libraries
/
LibCore
/
CUserInfo.h
6 lines
75 B
C
Raw
Normal View
History
Unescape
Escape
LibCore: Make get_current_user_home_path() return String & close passwd This API was returning a "const char*" and it was unclear who took care of the underlying memory. Returning a String makes that obvious. Also make sure we close the /etc/passwd file when we're done with it.
2019-08-03 08:32:07 +02:00
#
pragma once
AK: Rename <AK/AKString.h> to <AK/String.h> This was a workaround to be able to build on case-insensitive file systems where it might get confused about <string.h> vs <String.h>. Let's just not support building that way, so String.h can have an objectively nicer name. :^)
2019-09-06 15:34:26 +02:00
#
include
<AK/String.h>
LibCore: Make get_current_user_home_path() return String & close passwd This API was returning a "const char*" and it was unclear who took care of the underlying memory. Returning a String makes that obvious. Also make sure we close the /etc/passwd file when we're done with it.
2019-08-03 08:32:07 +02:00
String
get_current_user_home_path
(
)
;
Reference in a new issue
Copy permalink