1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<title>Z88DK - Library Functions</title>
6
<meta http-equiv="content-type"
7
content="text/html; charset=ISO-8859-1">
11
<h2>Z88DK Library</h2>
14
<h4><assert.h></h4>
16
<pre>void assert(int expression);</pre>
18
<p>assert() prints an error message to standard output and terminates the
19
program if expression is false. This only happens when the macro NDEBUG was
20
undefined when <assert.h> was included.</p>
24
<h4><ctype.h></h4>
26
<pre>extern int isalpha(int c);<br>extern int isalnum(int c);<br>extern int isascii(int c);<br>extern int iscntrl(int c);<br>extern int isdigit(int c);<br>extern int isupper(int c);<br>extern int islower(int c);<br>extern int isprint(int c);<br>extern int ispunct(int c);<br>extern int isspace(int c);<br>extern int isxdigit(int c);<br></pre>
28
<p>isalnum() checks for an alphanumeric character<br>
29
isalpha() checks for an alphabetic character<br>
30
isascii() checks whether c is a 7-bit unsigned char value that fits into
31
the ASCII character set<br>
32
iscntrl() checks for a control character (i.e c < 32 )<br>
33
isdigit() checks for a digit (0 to 9)<br>
34
isupper() checks for an upper-case character<br>
35
islower() checks for a lower-case character<br>
36
isprint() checks for any printable character including space<br>
37
ispunct() checks for punctuation character<br>
38
isspace() checks for a white space character<br>
39
isxdigit() checks for a hexadecimal digit i.e. one of 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,a,b,c,d,e,f</p>
41
<pre><br>extern int toascii(int c);<br>extern int toupper(int c);<br>extern int tolower(int c);<br><br></pre>
43
<p>toascii() converts the c into a 7-bit ASCII character<br>
44
toupper() converts the letter c into an upper-case character if possible<br>
45
tolower() converts the letter c into a lower-case character if possible.<br>
48
<h4><fcntl.h></h4>
50
<h4><float.h></h4>
52
<h4><limits.h></h4>
54
<h4><malloc.h></h4>
56
<h4><math.h></h4>
58
<h4><setjmp.h></h4>
60
<h4><stdarg.h></h4>
62
<h4><stdio.h></h4>
64
<h4><stdlib.h></h4>
65
<pre>extern int system(char *command);<br></pre>
66
Executes an external command. This is only available for z88 shell programs.<br>
68
<h4><string.h></h4>
70
<h4><time.h></h4>
72
<h4><sys/types.h></h4>
74
<p>Ostensibly defines a set of standard types for the compiler. The most useful
77
<pre>u8_t Unsigned 8 bit number<br>u16_t Unsigned 16 bit number<br>u32_t Unsigned 32 bit number<br><br>i8_t Signed 8 bit number<br>i16_t Signed 16 bit number<br>i32_t Signed 32 bit number<br></pre>
80
<hr width="100%" size="1">
81
<table cellpadding="2" cellspacing="2" border="0" width="100%">
84
<td valign="top"><a href="index.html">z88dk</a> /library.html<br>
86
<td valign="top" align="right">Last Updated 20/1/2002 <a
87
href="mailto:dom@RMME.users.sourceforge.net"> dom</a><br>