SlideShare a Scribd company logo
9
Most read
13
Most read
22
Most read
WEL COME
PRAVEEN M JIGAJINNI
PGT (Computer Science)
MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA,
Dc. Sc. & Engg.
Reference Book
CLASS XI
By
Sumita Arora
CHAPTER 10
STANDARD
LIBRARY
FUNCTION
S
INTRODUCTION
• In computer science, library is a
collection of subprograms used to
develop software.
• Libraries are not independent
programs, rather they are helper code
used in other independent programs
What is Library?
A Library is a collection of
subprograms used to develop other
programs and software.
C++ Library functions stores function
in same category.(i.e., Mathematical
Functions, String Functions etc..) under
separate file known as header files
stdio.h
• This header file defines types and
macros needed for the standard I/O
package.
stdio.h
clearerr fclose fcloseall fdopen feof ferror
fflush fgetc fgetchar fgetpos fgets fileno
flushall fopen fprintf fputc fputchar fputs
fread freopen fscanf fseek fsetpos ftell
fwrite getc getchar gets getw perror
printf putc putchar puts putw remove
rename rewind rmtmp scanf setbuf setvbuf
sprintf sscanf strerror _strerror tempnam tmpfile
tmpnam ungetc unlink vfprintf vfscanf vprintf
vscanf vsprintf vsscanf
string.h
• This header file declares several string
manipulation and memory manipulation
routines.
string.h
_fmemccpy _fmemchr _fmemcmp _fmemcpy _fmemicmp
_fmemset _fstrcat _fstrchr _fstrcmp _fstrcpy
_fstrcspn _fstrdup _fstricmp _fstrlen _fstrlwr
_fstrncat _fstrncmp _fstrnicmp _fstrncpy _fstrnset
_fstrpbrk _fstrrchr _fstrrev _fstrset _fstrspn
_fstrstr _fstrtok _fstrupr memccpy memchr
memcmp memcpy memicmp memmove memset
movedata movmem setmem stpcpy strcat
strchr strcmp strcmpi strcpy strcspn
strdup _strerror strerror stricmp strlen
strlwr strncat strncmp strncmpi strncpy
strnicmp strnset strpbrk strrchr strrev
strset strspn strstr strtok strxfrm
strupr
math.h
abs acos, acosl asin, asinl
atan, atanl atan2, atan2l atof, _atold
cabs, cabsl ceil, ceill cos, cosl
cosh, coshl exp, expl fabs, fabsl
floor, floorl fmod, fmodl frexp, frexpl
hypot, hypotl labs ldexp, ldexpl
log, logl log10, log101 matherr, _matherrl
modf, modfl poly, polyl pow, powl
pow10, pow10l sin, sinl sinh, sinhl
sqrt, sqrtl tan, tanl tanh, tanhl
stdlib.h
• This header file declares several
commonly used routines like conversion
routines. The function contained in
stdlib.h are,
stdlib.h
abort abs atexit atof atoi
atol bsearch calloc div ecvt
exit _exit fcvt free _fullpath
gcvt getenv itoa labs ldiv
lfind _lrotl _lrotr lsearch ltoa
_makepath malloc max mblen mbtowc
mbstowcs min putenv qsort rand
random randomize realloc _rotl _rotr
_searchenv _splitpath srand strtod strtol
_strtold strtoul swab system time
ultoa wctomb wcstombs
iostream.h
• The header file declares the basic C++
streams input/output routines. Some of
the functions defined in it are,
iostream.h
open close get getline read write put
seekg seekp telg telp ignore pick putback
flush rdstate bad eof fill good
STRING AND CHARACTER
RELATED FUNCTIONS
• The string related functions are defined
in the string.h standard library header
file and the character related functions
are defined in the ctype.h header file.
int isalnum(int ch)
• The isalnum() function returns nonzero
if its arguments is a letter or digit. If the
character is not an alpha numeric
isalnum() returns zero.
• For example
char ch;
cin>>ch;
if(isalnum(ch)) cout<<“alpha numeric”;
int isalpha(int ch)
• This function returns non zero if ch is an
alphabet, otherwise it returns zero.
if(isalpha(ch))
cout<< “it is alphabeatic” ;
Int isdigit (int ch)
• Returns nonzero if ch is a digit (i.e.,0-
9).Otherwise it returns zero.
if (isdigit(ch))
cout<< “It is digit”;
int islower (int ch)
• Returns nonzero if ch is a lowercase
letter ; otherwise it returns zero.
if (islower (ch))
cout<< “Lowercase letter”;
int isupper (int ch)
• This function returns nonzero if ch is
uppercase ; otherwise, it returns zero.
if (isupper (ch))
cout<< “uppercase character” ;
int toupper (int ch)
• This function returns the uppercase
equivalent of ch if ch is a letter ;
otherwise, ch is returned unchanged.
char ch=‘a’;cout<<toupper (ch);
(it will print A).
int tolower (int ch)
• This function returns the lowercase
equivalent of ch if ch is a letter;
otherwise ch is returned unchanged.
char ch =‘a’;cout<<tolower (ch);
(It will print a.)
Standard Library Functions

More Related Content

PPTX
Functions in c++
PPT
Structure of C++ - R.D.Sivakumar
PDF
Introduction to c++ ppt
PPTX
Queue Implementation Using Array & Linked List
PPTX
Python Functions
PPTX
Python Data Structures and Algorithms.pptx
PPT
Structure of a C program
PPTX
stack & queue
Functions in c++
Structure of C++ - R.D.Sivakumar
Introduction to c++ ppt
Queue Implementation Using Array & Linked List
Python Functions
Python Data Structures and Algorithms.pptx
Structure of a C program
stack & queue

What's hot (20)

PPTX
INLINE FUNCTION IN C++
PPTX
Oop c++class(final).ppt
PPTX
Priority queue in DSA
PDF
Introduction to c++ ppt 1
PPT
Operators in C++
PPTX
Polymorphism in C++
PPTX
classes and objects in C++
PPTX
Abstract Data Types
PPTX
Programming in c Arrays
PPT
Basics of C programming
PPTX
Method overloading
PPTX
Strings in c++
PPTX
PPTX
Boolean and conditional logic in Python
PPTX
Functions in C
PPTX
Functions in Python
PPTX
Operators and expressions in c language
PPTX
File handling in c
PPTX
File in C language
PPTX
Stack and Queue
INLINE FUNCTION IN C++
Oop c++class(final).ppt
Priority queue in DSA
Introduction to c++ ppt 1
Operators in C++
Polymorphism in C++
classes and objects in C++
Abstract Data Types
Programming in c Arrays
Basics of C programming
Method overloading
Strings in c++
Boolean and conditional logic in Python
Functions in C
Functions in Python
Operators and expressions in c language
File handling in c
File in C language
Stack and Queue
Ad

Viewers also liked (10)

PPTX
C1: Future Technology Detecting Tools & Techniques
PPTX
Library in Modern age
PPT
Ch4 functions
PPTX
Library Usage and Essentials
PPTX
Functions in C++
PPTX
Library Management System PPT
PPT
Library powerpoint
PPT
Top Ten Reasons Libraries Are Still Important
PPT
The Library Then and Now: Its Importance and Relevance to the Present Genera...
PDF
Library mangement system project srs documentation.doc
C1: Future Technology Detecting Tools & Techniques
Library in Modern age
Ch4 functions
Library Usage and Essentials
Functions in C++
Library Management System PPT
Library powerpoint
Top Ten Reasons Libraries Are Still Important
The Library Then and Now: Its Importance and Relevance to the Present Genera...
Library mangement system project srs documentation.doc
Ad

Similar to Standard Library Functions (20)

PDF
A Peek into TFRT
PPT
iNTRODUCATION TO PYTHON IN PROGRAMMING LANGUAGE
PPTX
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptx
PPTX
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptx
PPT
Python_intro.ppt
PPTX
Python and You Series
PPTX
Functions and Header files ver very useful
DOCX
Python Course.docx
PDF
web programming UNIT VIII python by Bhavsingh Maloth
DOC
About python
DOCX
Python Interview Questions For Experienced
PDF
GE3151_PSPP_UNIT_5_Notes
PPTX
Java I/O
PPTX
Linux System Programming - Buffered I/O
PDF
W-334535VBE242 Using Python Libraries.pdf
PDF
First Steps in Python Programming
PPT
cs8251 unit 1 ppt
PPTX
Python Training
PPTX
FILE AND OBJECT<,ITS PROPERTIES IN PYTHON
A Peek into TFRT
iNTRODUCATION TO PYTHON IN PROGRAMMING LANGUAGE
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptx
C-Programming C LIBRARIES AND USER DEFINED LIBRARIES.pptx
Python_intro.ppt
Python and You Series
Functions and Header files ver very useful
Python Course.docx
web programming UNIT VIII python by Bhavsingh Maloth
About python
Python Interview Questions For Experienced
GE3151_PSPP_UNIT_5_Notes
Java I/O
Linux System Programming - Buffered I/O
W-334535VBE242 Using Python Libraries.pdf
First Steps in Python Programming
cs8251 unit 1 ppt
Python Training
FILE AND OBJECT<,ITS PROPERTIES IN PYTHON

More from Praveen M Jigajinni (20)

PPTX
Chapter 09 design and analysis of algorithms
PPTX
Chapter 08 data file handling
PPTX
Chapter 07 inheritance
PPTX
Chapter 06 constructors and destructors
PPTX
Chapter 05 classes and objects
PPTX
Chapter 04 object oriented programming
PPTX
Chapter 03 python libraries
PPTX
Chapter 02 functions -class xii
PPTX
Unit 3 MongDB
PPTX
Chapter 17 Tuples
PPTX
Chapter 15 Lists
PPTX
Chapter 14 strings
PPTX
Chapter 13 exceptional handling
PPTX
Chapter 10 data handling
PPTX
Chapter 9 python fundamentals
PPTX
Chapter 8 getting started with python
PPTX
Chapter 7 basics of computational thinking
PPTX
Chapter 6 algorithms and flow charts
PPTX
Chapter 5 boolean algebra
PPTX
Chapter 4 number system
Chapter 09 design and analysis of algorithms
Chapter 08 data file handling
Chapter 07 inheritance
Chapter 06 constructors and destructors
Chapter 05 classes and objects
Chapter 04 object oriented programming
Chapter 03 python libraries
Chapter 02 functions -class xii
Unit 3 MongDB
Chapter 17 Tuples
Chapter 15 Lists
Chapter 14 strings
Chapter 13 exceptional handling
Chapter 10 data handling
Chapter 9 python fundamentals
Chapter 8 getting started with python
Chapter 7 basics of computational thinking
Chapter 6 algorithms and flow charts
Chapter 5 boolean algebra
Chapter 4 number system

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Pharma ospi slides which help in ospi learning
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Basic Mud Logging Guide for educational purpose
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Classroom Observation Tools for Teachers
PDF
01-Introduction-to-Information-Management.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Institutional Correction lecture only . . .
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
102 student loan defaulters named and shamed – Is someone you know on the list?
GDM (1) (1).pptx small presentation for students
Pharma ospi slides which help in ospi learning
human mycosis Human fungal infections are called human mycosis..pptx
Basic Mud Logging Guide for educational purpose
O5-L3 Freight Transport Ops (International) V1.pdf
O7-L3 Supply Chain Operations - ICLT Program
Module 4: Burden of Disease Tutorial Slides S2 2025
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Sports Quiz easy sports quiz sports quiz
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Classroom Observation Tools for Teachers
01-Introduction-to-Information-Management.pdf
TR - Agricultural Crops Production NC III.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Computing-Curriculum for Schools in Ghana
Institutional Correction lecture only . . .

Standard Library Functions

  • 1. WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
  • 4. INTRODUCTION • In computer science, library is a collection of subprograms used to develop software. • Libraries are not independent programs, rather they are helper code used in other independent programs
  • 5. What is Library? A Library is a collection of subprograms used to develop other programs and software. C++ Library functions stores function in same category.(i.e., Mathematical Functions, String Functions etc..) under separate file known as header files
  • 6. stdio.h • This header file defines types and macros needed for the standard I/O package.
  • 7. stdio.h clearerr fclose fcloseall fdopen feof ferror fflush fgetc fgetchar fgetpos fgets fileno flushall fopen fprintf fputc fputchar fputs fread freopen fscanf fseek fsetpos ftell fwrite getc getchar gets getw perror printf putc putchar puts putw remove rename rewind rmtmp scanf setbuf setvbuf sprintf sscanf strerror _strerror tempnam tmpfile tmpnam ungetc unlink vfprintf vfscanf vprintf vscanf vsprintf vsscanf
  • 8. string.h • This header file declares several string manipulation and memory manipulation routines.
  • 9. string.h _fmemccpy _fmemchr _fmemcmp _fmemcpy _fmemicmp _fmemset _fstrcat _fstrchr _fstrcmp _fstrcpy _fstrcspn _fstrdup _fstricmp _fstrlen _fstrlwr _fstrncat _fstrncmp _fstrnicmp _fstrncpy _fstrnset _fstrpbrk _fstrrchr _fstrrev _fstrset _fstrspn _fstrstr _fstrtok _fstrupr memccpy memchr memcmp memcpy memicmp memmove memset movedata movmem setmem stpcpy strcat strchr strcmp strcmpi strcpy strcspn strdup _strerror strerror stricmp strlen strlwr strncat strncmp strncmpi strncpy strnicmp strnset strpbrk strrchr strrev strset strspn strstr strtok strxfrm strupr
  • 10. math.h abs acos, acosl asin, asinl atan, atanl atan2, atan2l atof, _atold cabs, cabsl ceil, ceill cos, cosl cosh, coshl exp, expl fabs, fabsl floor, floorl fmod, fmodl frexp, frexpl hypot, hypotl labs ldexp, ldexpl log, logl log10, log101 matherr, _matherrl modf, modfl poly, polyl pow, powl pow10, pow10l sin, sinl sinh, sinhl sqrt, sqrtl tan, tanl tanh, tanhl
  • 11. stdlib.h • This header file declares several commonly used routines like conversion routines. The function contained in stdlib.h are,
  • 12. stdlib.h abort abs atexit atof atoi atol bsearch calloc div ecvt exit _exit fcvt free _fullpath gcvt getenv itoa labs ldiv lfind _lrotl _lrotr lsearch ltoa _makepath malloc max mblen mbtowc mbstowcs min putenv qsort rand random randomize realloc _rotl _rotr _searchenv _splitpath srand strtod strtol _strtold strtoul swab system time ultoa wctomb wcstombs
  • 13. iostream.h • The header file declares the basic C++ streams input/output routines. Some of the functions defined in it are,
  • 14. iostream.h open close get getline read write put seekg seekp telg telp ignore pick putback flush rdstate bad eof fill good
  • 15. STRING AND CHARACTER RELATED FUNCTIONS • The string related functions are defined in the string.h standard library header file and the character related functions are defined in the ctype.h header file.
  • 16. int isalnum(int ch) • The isalnum() function returns nonzero if its arguments is a letter or digit. If the character is not an alpha numeric isalnum() returns zero. • For example char ch; cin>>ch; if(isalnum(ch)) cout<<“alpha numeric”;
  • 17. int isalpha(int ch) • This function returns non zero if ch is an alphabet, otherwise it returns zero. if(isalpha(ch)) cout<< “it is alphabeatic” ;
  • 18. Int isdigit (int ch) • Returns nonzero if ch is a digit (i.e.,0- 9).Otherwise it returns zero. if (isdigit(ch)) cout<< “It is digit”;
  • 19. int islower (int ch) • Returns nonzero if ch is a lowercase letter ; otherwise it returns zero. if (islower (ch)) cout<< “Lowercase letter”;
  • 20. int isupper (int ch) • This function returns nonzero if ch is uppercase ; otherwise, it returns zero. if (isupper (ch)) cout<< “uppercase character” ;
  • 21. int toupper (int ch) • This function returns the uppercase equivalent of ch if ch is a letter ; otherwise, ch is returned unchanged. char ch=‘a’;cout<<toupper (ch); (it will print A).
  • 22. int tolower (int ch) • This function returns the lowercase equivalent of ch if ch is a letter; otherwise ch is returned unchanged. char ch =‘a’;cout<<tolower (ch); (It will print a.)