Upload
jeff-brown
View
216
Download
0
Embed Size (px)
Citation preview
7/30/2019 ANSI C Reserved Words
1/17
ANSI C Reserved words:
only 32 keyword are there.
Standard ANSI C recognizes the followingkeywords:
auto
break
case
char
constcontinue
default
do
double
else
enum
extern
float
for
goto
if
int
long
register
return
7/30/2019 ANSI C Reserved Words
2/17
short
signed
sizeof
static
struct
switch
typedef
union
unsignedvoid
volatile
while
-------------------------
ok , i understood what r u saying.
u r right that when a header file is included,its function names cant be used as variables names.
but even then, they cant be regarded as keywords.
keywords r nearly 32 listed above.
there are numerous in-built functions in c, some of
them r listed here-
* assert.h
7/30/2019 ANSI C Reserved Words
3/17
assert (macro)
* complex.h
cabs
cacos
cacosh
carg
casin [disambiguation needed]casinh
catan [disambiguation needed]
catanh
ccos
ccosh
cexp
cimag
cis (non-standard)
clog [disambiguation needed]conj
cpow
7/30/2019 ANSI C Reserved Words
4/17
cproj
creal
csin
csinh
csqrt
ctan
ctanh
* ctype.h
digittoint (non-standard)
isalnum
isalphaisascii (non-standard)
isblank
iscntrl
isdigit
isgraph
islower
7/30/2019 ANSI C Reserved Words
5/17
isprint
ispunct
isspace
isupper
isxdigit
toascii (non-standard)tolower
toupper
* errno.h
(no functions)
* float.h
(no functions)
* inttypes.h
imaxabs
imaxdiv
7/30/2019 ANSI C Reserved Words
6/17
strtoimax
strtoumax
wcstoimaxwcstoumax
* iso646.h
(no functions)
* limits.h
(no functions)
* locale.h
localeconv
setlocale
7/30/2019 ANSI C Reserved Words
7/17
* math.h
acos
asin
atan
atan2
atof
ceil
coscosh
exp
fabsfloor
frexp
ldexp
log
log10
modf
7/30/2019 ANSI C Reserved Words
8/17
pow
sin
sinh
sqrt
tan
tanh
* setjmp.h
longjmp, setjmp
* signal.h
raise
* stdarg.h
va_arg (macro)
va_copy (macro)
va_end (macro)
va_start (macro)
* stddef.h
7/30/2019 ANSI C Reserved Words
9/17
offsetof (macro)
* stdio.h
clearerr
fclose
feof
ferror
fflushfgetc
fgetpos
fgets
fopen, freopen, fdopen (non-standard)
fprintf
fputcfputs
fread
fscanffseek
fsetpos
ftell
7/30/2019 ANSI C Reserved Words
10/17
fwrite
getc (macro)
getchar (macro)
gets
perror
printf, fprintf, sprintf, snprintf (non-standard)
putc (macro)
putchar, fputchar (non-standard) (macro)
puts
remove
rename
rewindscanf, fscanf, sscanf, vfscanf (non-standard), vscanf,
vsscanf
setbuf
setvbuf
tmpfile
tmpnamungetc
vprintf, vfprintf, vsprintf
7/30/2019 ANSI C Reserved Words
11/17
* stdlib.h
abort
abs, labs
atexit
atof
atoi
atol
bsearchdiv, ldiv
exit
freeitoa (non-standard)
getenv
ldiv
ltoa (non-standard)
malloc, calloc, and realloc
qsort
7/30/2019 ANSI C Reserved Words
12/17
rand
srand
strtod
strtol
strtoul
system
* string.h
memchr
memcmp
memcpy
memmove
memset
strcat, strncatstrchr
strcmp, strncmp
strcollstrcpy, strncpy
strcspn
strerror
7/30/2019 ANSI C Reserved Words
13/17
strlen
strpbrk
strrchr
strspn
strstr
strtokstrxfrm
* time.h
asctime
clockctime
difftime
gmtime
localtime
mktime
strftime
7/30/2019 ANSI C Reserved Words
14/17
time
* wchar.h
btowc
fgetwc
fgetws
fputwc
fputwsfwide
fwprintf
fwscanf
getwc (macro)
getwchar (macro)
mbrlenmbrtowc
mbsinit
mbsrtowcs
putwc (macro)
putwchar (macro)
swprintfswscanf
7/30/2019 ANSI C Reserved Words
15/17
ungetwc
vfwprintf
vswprintf
vwprintf
wcrtomb
wcscat
wcschr
wcscmpwcscoll
wcscpy
wcscspn
wcsftime
wcslen
wcsncatwcsncmp
wcsncpy
wcspbrk
wcsrchr
wcsrtombs
wcsspn
7/30/2019 ANSI C Reserved Words
16/17
wcsstr
wcstod
wcstok
wcstol
wcstoul
wcsxfrm
wctob
wmemchr
wmemcmpwmemcpy
wmemmove
wmemset
wprintf
wscanf
* wctype.h
iswalnum
iswalpha
iswcntrl
iswctypeiswdigit
iswgraph
7/30/2019 ANSI C Reserved Words
17/17
iswlower
iswprint
iswpunct
iswspace
iswupper
iswxdigit
towctrans
towlower
towupper
wctranswctype