text stringlengths 0 99.6k |
|---|
Highmem sets the highest address that |
a C program can use. the run time |
stack will not go past this address, |
and the memory allocation functions |
(malloc, calloc, realloc) will not |
allocate memory higher than this |
address. the value of the argument |
must be one greater than the desired |
address. if highmem is not called, |
address defaults to 0xd000, which |
means the highest address which can be |
used is 0xcfff |
-------------------------------------- |
hypot, cabs - calculate hypotenuse |
#include <math.h> |
float hypot(x,y) |
float x, y; |
float cabs(c) |
struct (* float x,y; *) *c; |
Hypot and cabs return sqrt(x*x + y*y) |
-------------------------------------- |
isalpha, ... - classify characters |
isalpha(c) |
The following functions return |
non-zero integers if the stated |
condition is true, zero otherwise |
isalpha c is a letter |
isupper c is an upper case letter |
islower c is a lower case letter |
isdigit c is a digit |
isalnum c is a letter or a digit |
isspace c is a space or a newline |
ispunct c is a punctuation char |
isprint c is a printable char |
iscntrl c is a control char |
isascii c has value less than 0200 |
-------------------------------------- |
malloc, calloc, realloc,free |
- memory allocation |
char *malloc(size) |
unsigned size; |
char *calloc(nelem, elsize) |
unsigned nelem, elsize; |
char *realloc(ptr, size) |
char *ptr; |
unsigned size; |
free(ptr) |
char *ptr; |
Malloc returns a pointer to a block of |
memory containing at least size bytes |
Calloc returns a pointer to a block of |
zero-filled memory containing at least |
nelem * elsize bytes |
Realloc copies the block pointed to by |
ptr into a new block containing at |
least size bytes. ptr must point to a |
block allocated by malloc, calloc or |
realloc |
free releases the block pointed to by |
ptr into the free memory list |
Malloc, calloc and realloc all return |
the null pointer (0) if there is not |
enough free memory to satisfy the |
request |
-------------------------------------- |
open, close - BASIC style open/close |
open(fileno, device, secaddr, name) |
char *name; |
close(fileno); |
The arguments of open correspond |
exactly to the file number, device |
number, secondary address, and file |
name arguments of the BASIC OPEN |
command. consult a Commodore 64 manual |
for the meanings of the arguments. |
similarly, close corresponds to the |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.