text stringlengths 0 99.6k |
|---|
char *ptr; |
FILE stream; |
fwrite(ptr,elsize,nelem,stream) |
char *ptr; |
FILE stream; |
Fread/fwrite reads/writes an array |
containing nelem elements each of size |
elesize bytes geginning at ptr from/to |
the specified stream |
fread returns zero upon end of file |
-------------------------------------- |
frexp,ldexp - split float into |
mantissa and exponent |
float frexp(value,ptr) |
float value; |
int *ptr; |
float ldexp(value,exp) |
float value; |
frexp splits value into a mantissa m |
of manitude less than 1 (which is |
returned) and an exponent exp (which |
is stored indirectly through ptr) such |
that value = m * 2**exp |
ldexp returns value * 2**exp |
-------------------------------------- |
getc,getchar,fgetc,getw |
- input character or integer |
#include <stdio.h> |
int getc(stream) |
FILE stream; |
int getchar() |
int fgetc(stream) |
FILE stream; |
int getw(stream) |
FILE stream; |
Getc and fgetc read a character from |
the specified stream |
Getchar reads a character from the |
standard input |
Getw reads an integer (two bytes) |
from the specified stream |
All of these functions return EOF upon |
end of file, however, since EOF is a |
valid integer, feof should be used to |
check for end of file after getw |
-------------------------------------- |
gets, fgets - input a string |
#include <stdio.h> |
char *gets(s) |
char *s; |
char *fgets(s,n,stream) |
char *s; |
FILE stream; |
Gets inputs a string from the standard |
input. it reads characters into s |
until a newline is encountered. the |
newline is replaced with a zero |
Fgets inputs a string from the |
specified stream. it reads n-1 |
characters or until a newline is |
encountered whichever comes first. the |
newline is not replaced but a zero is |
placed after the last character read |
Both functions return s upon normal |
completion or NULL upon end of file |
-------------------------------------- |
highmem - memory configuration |
highmem(address) |
unsigned address; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.