Headerfiles

50 %
50 %
Information about Headerfiles

Published on January 28, 2009

Author: archikabhatia

Source: slideshare.net

Description

EXPLAINS SOME OF THE HEADER FILES AND THE INBUILT FUNCTIONS AVAILABLE WITH THE HEADER FILES

CHARACTER FUNCTIONS Header file: ctype.h int isalpha (int ch): returns non zero if ch is alphabet else returns 0 int isalnum (int ch): returns non zero if ch is alphabet or digit else returns 0 int isdigit (int ch): returns non zero if ch is a digit ( 0 – 9) else returns 0 int islower (int ch): returns non zero id ch is a lower case letter else returns 0.

int isalpha (int ch):

returns non zero if ch is alphabet else returns 0

int isalnum (int ch):

returns non zero if ch is alphabet or digit else returns 0

int isdigit (int ch):

returns non zero if ch is a digit ( 0 – 9) else returns 0

int islower (int ch):

returns non zero id ch is a lower case letter else returns 0.

int isupper ( int ch ): returns non zero if ch is in uppercase letter else 0. int toupper ( int ch ): returns uppercase equivalent of ch if ch is a letter otherwise ch is returned unchanged. int tolower ( int ch): returns lowercase equivalent of ch if ch is a letter else ch is returned unchanged.

int isupper ( int ch ): returns non zero if ch is in uppercase letter else 0.

int toupper ( int ch ): returns uppercase equivalent of ch if ch is a letter otherwise ch is returned unchanged.

int tolower ( int ch): returns lowercase equivalent of ch if ch is a letter else ch is returned unchanged.

STRING FUNCTIONS HEADER FILE : string.h int strlen ( str ) returns the length of the string int strcmp ( str1, str2 ) & int stricmp (str1, str2) returns 0 id str1 = str2 >0 if str1 > str2 <0 if str1 < str2 Note : stricmp ignores case of the character char strcpy ( dstr, sstr) copies contents of sstr to dstr int strcat ( str1, str2 ) copies contents of str2 to str1 without overwriting

int strlen ( str ) returns the length of the string

int strcmp ( str1, str2 ) & int stricmp (str1, str2) returns 0 id str1 = str2 >0 if str1 > str2 <0 if str1 < str2 Note : stricmp ignores case of the character

char strcpy ( dstr, sstr) copies contents of sstr to dstr

int strcat ( str1, str2 ) copies contents of str2 to str1 without overwriting

MATHEMATICAL FUNCTIONS header file: math.h fabs (num) returns absolute value of floating point num. e.g. fabs( 1.0 ) : 1.0 fabs ( - 1.0 ) : 1.0 fmod ( x, y ) returns remainder of division x/y e.g. fmod(10.0, 4.0 ) : 2.0 log10 (num) returns base 10 logarithm for the num e.g. log10( 1.0 ) gives base 10 logarithm for 1.0. pow (x, n) returns the power of no. x to the power n.e.g. pow(4.0, 2.0) : 16 sqrt (num) returns the square root of a no. e.g. sqrt(18): 9.0

fabs (num) returns absolute value of floating point num. e.g. fabs( 1.0 ) : 1.0 fabs ( - 1.0 ) : 1.0

fmod ( x, y ) returns remainder of division x/y e.g. fmod(10.0, 4.0 ) : 2.0

log10 (num) returns base 10 logarithm for the num e.g. log10( 1.0 ) gives base 10 logarithm for 1.0.

pow (x, n) returns the power of no. x to the power n.e.g. pow(4.0, 2.0) : 16

sqrt (num) returns the square root of a no. e.g. sqrt(18): 9.0

sin (num): returns the sine value of the no. cos (num): returns the cosine value of the number abs (num): returns the absolute value of an integer.

sin (num): returns the sine value of the no.

cos (num): returns the cosine value of the number

abs (num): returns the absolute value of an integer.

Add a comment

Related presentations

Related pages

Include directive - Wikipedia, the free encyclopedia

Many programming languages and other computer files have a directive, often called include ... These included files are called copybooks or header files.
Read more

1.9 — Header files « Learn C++

Headers, and their purpose. As programs grow larger and larger (and include more files), it becomes increasingly tedious to have to forward declare every ...
Read more

Headerfiles in Eclipse | tutorials.de - User helfen Usern

Hi Leute, große Pläne hatte ich für dieses Wochenende. Wollte mir doch mal Eclipse als IDE für C++ ansehen. Erstmal habe ih Eclipse heruntergeladen...
Read more

C - Header Files - Tutorialspoint

C Header Files - Learn ANSI, GNU and K/R standard of C programming language with simple and easy examples covering basic C, language basics, literals, data ...
Read more

Header Files - The C Preprocessor

2 Header Files. A header file is a file containing C declarations and macro definitions (see Macros) to be shared between several source files. You request ...
Read more

Eclipse Headerfiles | tutorials.de - User helfen Usern

Hallo, ich habe seit gestern ein MacBook und bin neu in Sachen Apple. Nun wollte ich mich mal mit der IDE Eclipse (c++) befassen. Leider bin ich auf...
Read more

Properitäre Headerfiles? | wer-weiss-was.de

Hi, ich habe jetzt Mal begonnen und versuche uDMXArtnet zu compilieren. Leider fehlt mir noch eine Header-Datei: #include google hat ...
Read more

vishia - Dokumentation aus Headerfiles

vishia - Dokumentation aus Headerfiles. Inhalt. 1 Einbinden von Headerfiles in einer Dokumentation; 1.1 Generierschritte von Dokumentationsanteilen aus ...
Read more

Windows-Forms-Designer zerstört Headerfiles in Visual ...

Hallo, ich weiß, ich weiß: Windows Forms und C++/CLI ist so eine Geschichte...;-) Und es lassen sich (ohne "Tricks") keine neuen Windows-Forms-Projekte ...
Read more

[C/C++]:Header-Files? | wer-weiss-was.de

Hi Programmierer! Ich bin C/C++ Beginner und hab da eine Verständnisfrage: Die .h-Files sind ja dazu da, Definitionen und Procedur-Header zu beschreiben.
Read more