*** empty log message ***
This commit is contained in:
17
lang/basic/lib/chr.c
Normal file
17
lang/basic/lib/chr.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "string.h"
|
||||
|
||||
/* $Header $ */
|
||||
|
||||
String *_chr(i)
|
||||
int i;
|
||||
{
|
||||
String *s;
|
||||
char buf[2];
|
||||
|
||||
if( i<0 || i>127)
|
||||
error(3);
|
||||
buf[0]=i;
|
||||
buf[1]=0;
|
||||
s= (String *) _newstr(buf);
|
||||
return(s);
|
||||
}
|
||||
Reference in New Issue
Block a user