xref: /inferno-os/module/libc0.m (revision 46439007cf417cbd9ac8049bb4122c890097a0fa)
1*46439007SCharles.ForsythLibc0: module
2*46439007SCharles.Forsyth{
3*46439007SCharles.Forsyth	PATH: con "/dis/lib/libc0.dis";
4*46439007SCharles.Forsyth
5*46439007SCharles.Forsyth	isalnum: fn(c: int): int;
6*46439007SCharles.Forsyth	isalpha: fn(c: int): int;
7*46439007SCharles.Forsyth	isascii: fn(c: int): int;
8*46439007SCharles.Forsyth	iscntrl: fn(c: int): int;
9*46439007SCharles.Forsyth	isdigit: fn(c: int): int;
10*46439007SCharles.Forsyth	isgraph: fn(c: int): int;
11*46439007SCharles.Forsyth	islower: fn(c: int): int;
12*46439007SCharles.Forsyth	isprint: fn(c: int): int;
13*46439007SCharles.Forsyth	ispunct: fn(c: int): int;
14*46439007SCharles.Forsyth	isspace: fn(c: int): int;
15*46439007SCharles.Forsyth	isupper: fn(c: int): int;
16*46439007SCharles.Forsyth	isxdigit: fn(c: int): int;
17*46439007SCharles.Forsyth
18*46439007SCharles.Forsyth	tolower: fn(c: int): int;
19*46439007SCharles.Forsyth	toupper: fn(c: int): int;
20*46439007SCharles.Forsyth	toascii: fn(c: int): int;
21*46439007SCharles.Forsyth
22*46439007SCharles.Forsyth	strlen: fn(s: array of byte): int;
23*46439007SCharles.Forsyth	strcmp: fn(s1: array of byte, s2: array of byte): int;
24*46439007SCharles.Forsyth	strcpy: fn(s1: array of byte, s2: array of byte): array of byte;
25*46439007SCharles.Forsyth	strcat: fn(s1: array of byte, s2: array of byte): array of byte;
26*46439007SCharles.Forsyth	strncmp: fn(s1: array of byte, s2: array of byte, n: int): int;
27*46439007SCharles.Forsyth	strncpy: fn(s1: array of byte, s2: array of byte, n: int): array of byte;
28*46439007SCharles.Forsyth	strncat: fn(s1: array of byte, s2: array of byte, n: int): array of byte;
29*46439007SCharles.Forsyth	strdup: fn(s: array of byte): array of byte;
30*46439007SCharles.Forsyth	strchr: fn(s: array of byte, n: int): array of byte;
31*46439007SCharles.Forsyth	strrchr: fn(s: array of byte, n: int): array of byte;
32*46439007SCharles.Forsyth
33*46439007SCharles.Forsyth	abs: fn(n: int): int;
34*46439007SCharles.Forsyth	min: fn(m: int, n: int): int;
35*46439007SCharles.Forsyth	max: fn(m: int, n: int): int;
36*46439007SCharles.Forsyth
37*46439007SCharles.Forsyth	ls2aab: fn(argl: list of string): array of array of byte;
38*46439007SCharles.Forsyth	s2ab: fn(s: string): array of byte;
39*46439007SCharles.Forsyth	ab2s: fn(a: array of byte): string;
40*46439007SCharles.Forsyth};
41