~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to www/std_library.html

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-02-12 08:23:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080212082349-wgijt44scmgje90o
Tags: 1.7.ds1-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - build z88dk and z88dk-bin binary packages for lpia too
  - update Maintainer field as per spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html>
3
 
<head>
4
 
  <title>Z88DK - Library Functions</title>
5
 
      
6
 
  <meta http-equiv="content-type"
7
 
 content="text/html; charset=ISO-8859-1">
8
 
</head>
9
 
  <body>
10
 
 
11
 
<h2>Z88DK Library</h2>
12
 
 <br>
13
 
 
14
 
<h4>&lt;assert.h&gt;</h4>
15
 
 
16
 
<pre>void assert(int expression);</pre>
17
 
 
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 &lt;assert.h&gt; was included.</p>
21
 
 
22
 
<p></p>
23
 
 
24
 
<h4>&lt;ctype.h&gt;</h4>
25
 
 
26
 
<pre>extern&nbsp;int isalpha(int c);<br>extern&nbsp;int isalnum(int c);<br>extern&nbsp;int isascii(int c);<br>extern&nbsp;int iscntrl(int c);<br>extern&nbsp;int isdigit(int c);<br>extern&nbsp;int isupper(int c);<br>extern&nbsp;int islower(int c);<br>extern&nbsp;int isprint(int c);<br>extern&nbsp;int ispunct(int c);<br>extern&nbsp;int isspace(int c);<br>extern&nbsp;int isxdigit(int c);<br></pre>
27
 
 
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 &lt; 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>
40
 
 
41
 
<pre><br>extern&nbsp;int toascii(int c);<br>extern&nbsp;int toupper(int c);<br>extern&nbsp;int tolower(int c);<br><br></pre>
42
 
 
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>
46
 
 </p>
47
 
 
48
 
<h4>&lt;fcntl.h&gt;</h4>
49
 
 
50
 
<h4>&lt;float.h&gt;</h4>
51
 
 
52
 
<h4>&lt;limits.h&gt;</h4>
53
 
 
54
 
<h4>&lt;malloc.h&gt;</h4>
55
 
 
56
 
<h4>&lt;math.h&gt;</h4>
57
 
 
58
 
<h4>&lt;setjmp.h&gt;</h4>
59
 
 
60
 
<h4>&lt;stdarg.h&gt;</h4>
61
 
 
62
 
<h4>&lt;stdio.h&gt;</h4>
63
 
 
64
 
<h4>&lt;stdlib.h&gt;</h4>
65
 
<pre>extern&nbsp;int system(char *command);<br></pre>
66
 
Executes an external command. This is only available for z88 shell programs.<br>
67
 
 
68
 
<h4>&lt;string.h&gt;</h4>
69
 
 
70
 
<h4>&lt;time.h&gt;</h4>
71
 
 
72
 
<h4>&lt;sys/types.h&gt;</h4>
73
 
 
74
 
<p>Ostensibly defines a set of standard types for the compiler. The most useful
75
 
are:</p>
76
 
 
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>
78
 
 <br>
79
 
 
80
 
<hr width="100%" size="1"> 
81
 
<table cellpadding="2" cellspacing="2" border="0" width="100%">
82
 
   <tbody>
83
 
     <tr>
84
 
       <td valign="top"><a href="index.html">z88dk</a> /library.html<br>
85
 
       </td>
86
 
       <td valign="top" align="right">Last Updated 20/1/2002 <a
87
 
 href="mailto:dom@RMME.users.sourceforge.net">  dom</a><br>
88
 
       </td>
89
 
     </tr>
90
 
   
91
 
  </tbody> 
92
 
</table>
93
 
   <br>
94
 
</body>
95
 
</html>