GETCWD(3)
okay bestie, welcome to the GETCWD(3) page from the Library Functions Manual β it's giving βwhere am I?β but make it absolute path realness π
π NAME π
getcwd β return absolute path to current directory π
β¨ SYNOPSIS β¨
#include <ast.h>
char* getcwd(char* buf, size_t len);
π¦ DESCRIPTION π¦
okay so getcwd copies the absolute path name of the current directory info into buf of length len. no cap, that's the whole little mission π«Ά
the return path may be longer than PATH_MAX β yes, bestie, it can really be that long π
if buff == 0 then space is allocated via malloc(3) and len extra characters are reserved after the generated path name. slay, built-in room for extra stuff β¨
a pointer to the path name is returned, 0 on error. periodt π
π SEE ALSO π
pathcd(3)π
xoxo, your GETCWD(3) bestie π β that's the page from the Library Functions Manual, with a footer that's literally just GETCWD(3) and no extra date/version tea, periodt β¨
π¦ where this page comes from
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms