text stringlengths 0 99.6k |
|---|
of charcters read equals the field |
width, whichever comes first. If no |
field width is specified characters |
are read up to the first unrecognized |
character. |
A letter following the percent |
character indicates the type of |
conversion to be performed on the |
field as follows: |
d - the field is expected to contain |
a possibly signed decimal number |
which is converted into an integer |
x - the field is expected to contain |
a hexadecimal number which is |
converted into an integer |
o - the field is expected to contain |
an octal number which is converted |
into an integer |
f - the field is expected to contain |
a possibly signed decimal number with |
an optional decimal point and |
exponent which is converted into a |
float |
s - no conversion is performed; the |
field is copied into a string |
argument with a NULL character |
appended |
c - the field contains a single |
character which is copied into a |
character argument |
For each conversion specifier (except |
for those which suppress assignment) |
there must be a corresponding |
argument which is a pointer to an |
appropriate type. For example, a |
coversion requires that there be a |
pointer to an integer or an unsigned. |
To match a percent character from the |
input use %%. |
These functions return EOF upon end |
of file, otherwise they return the |
number of conversions successfully |
performed. This number may be less |
than the number of conversion |
specifiers if, for example, |
characters in the control string do |
not match corresponding characters |
from the input. |
To input strings with embedded spaces |
use gets or fgets. |
-------------------------------------- |
setjmp, longjmp - long range goto |
#include <setjump.h> |
setjmp(env) |
jmp buf env; |
longjmp(env, val) |
jmp buf env; |
Setjmp stores its stack environment |
in "env" and returns zero. |
Longjmp restores the stack |
environment saved by setjmp and |
returns in such a way that it |
appears thta the original call to |
setjmp has returned with the value |
"val". |
The calls to setjmp and longjmp may |
be in different functions but the |
function containing the setjmp call |
must not have returned before the |
call to longjmp. |
-------------------------------------- |
sin,cos,tan,asin,acos,atan,atan2 |
- trigonometric functions |
#include <math.h> |
float sin(x) |
float x; |
float cos(x) |
float x; |
float tan(x) |
float x; |
float asin(x) |
float x; |
float acos(x) |
float x; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.