clang-format

This commit is contained in:
2024-09-10 13:03:02 -04:00
parent 53c617d779
commit d66450e427
381 changed files with 28864 additions and 34170 deletions

View File

@@ -36,21 +36,19 @@
* all the work.
*/
char *
getcwd(char *buf, size_t buflen)
{
int r;
char *getcwd(char *buf, size_t buflen) {
int r;
if (buflen < 1) {
errno = EINVAL;
return NULL;
}
if (buflen < 1) {
errno = EINVAL;
return NULL;
}
r = __getcwd(buf, buflen-1);
if (r < 0) {
return NULL;
}
r = __getcwd(buf, buflen - 1);
if (r < 0) {
return NULL;
}
buf[r] = 0;
return buf;
buf[r] = 0;
return buf;
}