PatchworkOS
19e446b
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
swrite.c
Go to the documentation of this file.
1
#include <
string.h
>
2
#include <
sys/fs.h
>
3
4
size_t
writes
(
fd_t
fd,
const
char
*
string
)
5
{
6
size_t
length =
strlen
(
string
);
7
return
write
(fd,
string
, length);
8
}
write
size_t write(fd_t fd, const void *buffer, size_t count)
System call for writing to files.
Definition
write.c:8
writes
size_t writes(fd_t fd, const char *string)
Wrapper for writing a null-terminated string to a file.
Definition
swrite.c:4
fd_t
__UINT64_TYPE__ fd_t
File descriptor type.
Definition
fd_t.h:10
fs.h
string.h
strlen
_PUBLIC size_t strlen(const char *s)
Definition
strlen.c:3
src
libstd
user
functions
fs
swrite.c
Generated on Sat Jan 24 2026 10:59:25 for PatchworkOS by
1.9.8