PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
notecmp.c
Go to the documentation of this file.
1
#include <
sys/proc.h
>
2
3
#include <
string.h
>
4
5
int64_t
notecmp
(
const
char
* note,
const
char
* word)
6
{
7
size_t
len =
strlen
(word);
8
return
strncmp
(note, word, len) == 0 && (note[len] ==
'\0'
|| note[len] ==
' '
) ? 0 : -1;
9
}
notecmp
int64_t notecmp(const char *note, const char *word)
Helper for comparing note strings.
Definition
notecmp.c:5
proc.h
int64_t
__INT64_TYPE__ int64_t
Definition
stdint.h:16
string.h
strncmp
_PUBLIC int strncmp(const char *s1, const char *s2, size_t n)
Definition
strncmp.c:3
strlen
_PUBLIC size_t strlen(const char *s)
Definition
strlen.c:3
src
libstd
user
functions
proc
notecmp.c
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8