diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /module/libc.m | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'module/libc.m')
| -rw-r--r-- | module/libc.m | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/module/libc.m b/module/libc.m new file mode 100644 index 00000000..f3bfda3c --- /dev/null +++ b/module/libc.m @@ -0,0 +1,30 @@ +Libc: module +{ + PATH: con "/dis/lib/libc.dis"; + + isalnum: fn(c: int): int; + isalpha: fn(c: int): int; + isascii: fn(c: int): int; + iscntrl: fn(c: int): int; + isdigit: fn(c: int): int; + isgraph: fn(c: int): int; + islower: fn(c: int): int; + isprint: fn(c: int): int; + ispunct: fn(c: int): int; + isspace: fn(c: int): int; + isupper: fn(c: int): int; + isxdigit: fn(c: int): int; + + tolower: fn(c: int): int; + toupper: fn(c: int): int; + toascii: fn(c: int): int; + + strchr: fn(s: string, n: int): int; + strrchr: fn(s: string, n: int): int; + strncmp: fn(s1: string, s2: string, n: int): int; + + abs: fn(n: int): int; + min: fn(m: int, n: int): int; + max: fn(m: int, n: int): int; + +}; |
