SlideShare a Scribd company logo
All C Functions
1. #, ## manipulate strings
2. #define define variables
3. #error display an error message
4.
#if, #ifdef, #ifndef, #else, #elif,
#endif
conditional operators
5. #include insert the contents of another file
6. #line set line and file information
7. #pragma implementation specific command
8. #undef used to undefine variables
9.
Predefined preprocessor
variables
miscellaneous preprocessor variables
10. abort stops the program
11. abs absolute value
12. acos arc cosine
13. asctime a textual version of the time
14. asin arc sine
15. assert stops the program if an expression isn't true
16. atan arc tangent
17. atan2 arc tangent, using signs to determine quadrants
18. atexit sets a function to be called when the program exits
19. atof converts a string to a double
20. atoi converts a string to an integer
21. atol converts a string to a long
22. bsearch perform a binary search
23. calloc allocates and clears a two-dimensional chunk of memory
24. ceil the smallest integer not less than a certain value
25. clearerr clears errors
26. clock returns the amount of time that the program has been running
27. cos cosine
28. cosh hyperbolic cosine
29. ctime returns a specifically formatted version of the time
30. difftime the difference between two times
31. div returns the quotient and remainder of a division
32. exit stop the program
33. exp returns "e" raised to a given power
34. fabs absolute value for floating-point numbers
35. fclose close a file
36. feof true if at the end-of-file
37. ferror checks for a file error
38. fflush writes the contents of the output buffer
39. fgetc get a character from a stream
40. fgetpos get the file position indicator
41. fgets get a string of characters from a stream
42. floor returns the largest integer not greater than a given value
43. fmod returns the remainder of a division
44. fopen open a file
45. fprintf print formatted output to a file
46. fputc write a character to a file
47. fputs write a string to a file
48. fread read from a file
49. free returns previously allocated memory to the operating system
50. freopen open an existing stream with a different name
51. frexp decomposes a number into scientific notation
52. fscanf read formatted input from a file
53. fseek move to a specific location in a file
54. fsetpos move to a specific location in a file
55. ftell returns the current file position indicator
56. fwrite write to a file
57. getc read a character from a file
58. getchar read a character from STDIN
59. getenv get enviornment information about a variable
60. gets read a string from STDIN
61. gmtime returns a pointer to the current Greenwich Mean Time
62. isalnum true if a character is alphanumeric
63. isalpha true if a character is alphabetic
64. iscntrl true if a character is a control character
65. isdigit true if a character is a digit
66. isgraph true if a character is a graphical character
67. islower true if a character is lowercase
68. isprint true if a character is a printing character
69. ispunct true if a character is punctuation
70. isspace true if a character is a space character
71. isupper true if a character is an uppercase character
72. isxdigit true if a character is a hexidecimal character
73. labs absolute value for long integers
74. ldexp computes a number in scientific notation
75. ldiv
returns the quotient and remainder of a division, in long
integer form
76. localtime returns a pointer to the current time
77. log natural logarithm
78. log10 natural logarithm, in base 10
79. longjmp start execution at a certain point in the program
80. malloc allocates memory
81. memchr searches an array for the first occurance of a character
82. memcmp compares two buffers
83. memcpy copies one buffer to another
84. memmove moves one buffer to another
85. memset fills a buffer with a character
86. mktime returns the calendar version of a given time
87. modf decomposes a number into integer and fractional parts
88. perror displays a string version of the current error to STDERR
89. pow returns a given number raised to another number
90. printf write formatted output to STDOUT
91. putc write a character to a stream
92. putchar write a character to STDOUT
93. puts write a string to STDOUT
94. qsort perform a quicksort
95. raise send a signal to the program
96. rand returns a pseudorandom number
97. realloc changes the size of previously allocated memory
98. remove erase a file
99. rename rename a file
100. rewind move the file position indicator to the beginning of a file
101. scanf read formatted input from STDIN
102. setbuf set the buffer for a specific stream
103. setjmp set execution to start at a certain point
104. setlocale sets the current locale
105. setvbuf set the buffer and size for a specific stream
106. signal register a function as a signal handler
107. sin sine
108. sinh hyperbolic sine
109. sprintf write formatted output to a buffer
110. sqrt square root
111. srand initialize the random number generator
112. sscanf read formatted input from a buffer
113. strcat concatenates two strings
114. strchr finds the first occurance of a character in a string
115. strcmp compares two strings
116. strcoll compares two strings in accordance to the current locale
117. strcpy copies one string to another
118. strcspn searches one string for any characters in another
119. strerror returns a text version of a given error code
120. strftime returns individual elements of the date and time
121. strlen returns the length of a given string
122. strncat concatenates a certain amount of characters of two strings
123. strncmp compares a certain amount of characters of two strings
124. strncpy
copies a certain amount of characters from one string to
another
125. strpbrk
finds the first location of any character in one string, in
another string
126. strrchr finds the last occurance of a character in a string
127. strspn returns the length of a substring of characters of a string
128. strstr finds the first occurance of a substring of characters
129. strtod converts a string to a double
130. strtok finds the next token in a string
131. strtol converts a string to a long
132. strtoul converts a string to an unsigned long
133. strxfrm
converts a substring so that it can be used by string
comparison functions
134. system perform a system call
135. tan tangent
136. tanh hyperbolic tangent
137. time returns the current calendar time of the system
138. tmpfile return a pointer to a temporary file
139. tmpnam return a unique filename
140. tolower converts a character to lowercase
141. toupper converts a character to uppercase
142. ungetc puts a character back into a stream
143. va_arg use variable length parameter lists
144. vprintf, vfprintf, and vsprintf write formatted output with variable argument lists

More Related Content

PDF
Concurrent package classes
PPTX
Bigdata Presentation
PPT
5 stream ciphers
PDF
Debug Line Issues After Relaxation.
PPTX
Cryptography
PPT
Basic Encryption Decryption Chapter 2
PDF
An introduction to Rust: the modern programming language to develop safe and ...
PDF
Rust Intro @ Roma Rust meetup
Concurrent package classes
Bigdata Presentation
5 stream ciphers
Debug Line Issues After Relaxation.
Cryptography
Basic Encryption Decryption Chapter 2
An introduction to Rust: the modern programming language to develop safe and ...
Rust Intro @ Roma Rust meetup

What's hot (17)

ODP
IEEE1588 - Collision avoidance for Delay_Req messages in broadcast media
PDF
Cryptographic Protocols: Practical revocation and key rotation
PPT
Elementary cryptography
PPTX
Python 3.8 and Beyond
PPTX
Introduction to cryptography and types of ciphers
PPT
History of Cipher System
PDF
Cipher techniques
PPT
Secure Encyrption Systems Chapter 2
PDF
MPI - 1
PDF
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
PPT
Caesar cipher
PPT
Ccr - Concurrency and Coordination Runtime
PPTX
Clk-to-q delay, library setup and hold time
PDF
Caesar Cipher , Substitution Cipher, PlayFair and Vigenere Cipher
KEY
Using MPI
PPTX
Caesar cipher
IEEE1588 - Collision avoidance for Delay_Req messages in broadcast media
Cryptographic Protocols: Practical revocation and key rotation
Elementary cryptography
Python 3.8 and Beyond
Introduction to cryptography and types of ciphers
History of Cipher System
Cipher techniques
Secure Encyrption Systems Chapter 2
MPI - 1
Archeology for Entertainment, or Checking Microsoft Word 1.1a with PVS-Studio
Caesar cipher
Ccr - Concurrency and Coordination Runtime
Clk-to-q delay, library setup and hold time
Caesar Cipher , Substitution Cipher, PlayFair and Vigenere Cipher
Using MPI
Caesar cipher
Ad

Viewers also liked (14)

PDF
Shamwicca workshop 21052016
PDF
Crónica ts laboral 2014 2015
PDF
www.turkishtowelstore.com
PDF
Hcc 3711 we keep hou wrkg card fnl2
PPTX
Responsive design
PDF
Aplazamiento de sanción en casos de it si la empresa
PDF
¿Y a partir de ahora qué?
DOCX
Minuta 19
PDF
Bilboko Merkataritza PlanEstrategikoa 2015 – 2019
PPTX
Epidemological studies
DOCX
Minuta v
DOCX
PPTX
Año bíblico 2016
PDF
Artifical neural networks in 5 minutes
Shamwicca workshop 21052016
Crónica ts laboral 2014 2015
www.turkishtowelstore.com
Hcc 3711 we keep hou wrkg card fnl2
Responsive design
Aplazamiento de sanción en casos de it si la empresa
¿Y a partir de ahora qué?
Minuta 19
Bilboko Merkataritza PlanEstrategikoa 2015 – 2019
Epidemological studies
Minuta v
Año bíblico 2016
Artifical neural networks in 5 minutes
Ad

Similar to All functions (20)

PPT
file.ppt
PPTX
C language
PPSX
File mangement
PPTX
c_pro_introduction.pptx
PPTX
unit 1 cpds.pptx
PPT
Unit5 (2)
PPT
C Language Unit-5
PDF
C faqs interview questions placement paper 2013
PPTX
C language
PPTX
Introduction to Basic C programming 02
PPTX
want to learn files,then just use this ppt to learn
DOCX
Report on c and c++
PPTX
Programming in C
PPTX
Programming in C
PPTX
venkatesh.pptx
PPT
Introduction to Basic C programming 01
PPT
File handling(some slides only)
PPTX
PPS_unit_2_gtu_sem_2_year_2023_GTUU.pptx
PPT
Unit5
file.ppt
C language
File mangement
c_pro_introduction.pptx
unit 1 cpds.pptx
Unit5 (2)
C Language Unit-5
C faqs interview questions placement paper 2013
C language
Introduction to Basic C programming 02
want to learn files,then just use this ppt to learn
Report on c and c++
Programming in C
Programming in C
venkatesh.pptx
Introduction to Basic C programming 01
File handling(some slides only)
PPS_unit_2_gtu_sem_2_year_2023_GTUU.pptx
Unit5

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Pharma ospi slides which help in ospi learning
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Lesson notes of climatology university.
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Trump Administration's workforce development strategy
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
master seminar digital applications in india
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Final Presentation General Medicine 03-08-2024.pptx
Pharma ospi slides which help in ospi learning
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Lesson notes of climatology university.
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
A systematic review of self-coping strategies used by university students to ...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Trump Administration's workforce development strategy
Chinmaya Tiranga quiz Grand Finale.pdf
Orientation - ARALprogram of Deped to the Parents.pptx
RMMM.pdf make it easy to upload and study
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
master seminar digital applications in india
2.FourierTransform-ShortQuestionswithAnswers.pdf
Computing-Curriculum for Schools in Ghana
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx

All functions

  • 1. All C Functions 1. #, ## manipulate strings 2. #define define variables 3. #error display an error message 4. #if, #ifdef, #ifndef, #else, #elif, #endif conditional operators 5. #include insert the contents of another file 6. #line set line and file information 7. #pragma implementation specific command 8. #undef used to undefine variables 9. Predefined preprocessor variables miscellaneous preprocessor variables 10. abort stops the program 11. abs absolute value 12. acos arc cosine 13. asctime a textual version of the time 14. asin arc sine 15. assert stops the program if an expression isn't true 16. atan arc tangent 17. atan2 arc tangent, using signs to determine quadrants 18. atexit sets a function to be called when the program exits 19. atof converts a string to a double 20. atoi converts a string to an integer 21. atol converts a string to a long 22. bsearch perform a binary search 23. calloc allocates and clears a two-dimensional chunk of memory 24. ceil the smallest integer not less than a certain value 25. clearerr clears errors 26. clock returns the amount of time that the program has been running 27. cos cosine 28. cosh hyperbolic cosine
  • 2. 29. ctime returns a specifically formatted version of the time 30. difftime the difference between two times 31. div returns the quotient and remainder of a division 32. exit stop the program 33. exp returns "e" raised to a given power 34. fabs absolute value for floating-point numbers 35. fclose close a file 36. feof true if at the end-of-file 37. ferror checks for a file error 38. fflush writes the contents of the output buffer 39. fgetc get a character from a stream 40. fgetpos get the file position indicator 41. fgets get a string of characters from a stream 42. floor returns the largest integer not greater than a given value 43. fmod returns the remainder of a division 44. fopen open a file 45. fprintf print formatted output to a file 46. fputc write a character to a file 47. fputs write a string to a file 48. fread read from a file 49. free returns previously allocated memory to the operating system 50. freopen open an existing stream with a different name 51. frexp decomposes a number into scientific notation 52. fscanf read formatted input from a file 53. fseek move to a specific location in a file 54. fsetpos move to a specific location in a file 55. ftell returns the current file position indicator 56. fwrite write to a file 57. getc read a character from a file 58. getchar read a character from STDIN 59. getenv get enviornment information about a variable 60. gets read a string from STDIN
  • 3. 61. gmtime returns a pointer to the current Greenwich Mean Time 62. isalnum true if a character is alphanumeric 63. isalpha true if a character is alphabetic 64. iscntrl true if a character is a control character 65. isdigit true if a character is a digit 66. isgraph true if a character is a graphical character 67. islower true if a character is lowercase 68. isprint true if a character is a printing character 69. ispunct true if a character is punctuation 70. isspace true if a character is a space character 71. isupper true if a character is an uppercase character 72. isxdigit true if a character is a hexidecimal character 73. labs absolute value for long integers 74. ldexp computes a number in scientific notation 75. ldiv returns the quotient and remainder of a division, in long integer form 76. localtime returns a pointer to the current time 77. log natural logarithm 78. log10 natural logarithm, in base 10 79. longjmp start execution at a certain point in the program 80. malloc allocates memory 81. memchr searches an array for the first occurance of a character 82. memcmp compares two buffers 83. memcpy copies one buffer to another 84. memmove moves one buffer to another 85. memset fills a buffer with a character 86. mktime returns the calendar version of a given time 87. modf decomposes a number into integer and fractional parts 88. perror displays a string version of the current error to STDERR 89. pow returns a given number raised to another number 90. printf write formatted output to STDOUT 91. putc write a character to a stream
  • 4. 92. putchar write a character to STDOUT 93. puts write a string to STDOUT 94. qsort perform a quicksort 95. raise send a signal to the program 96. rand returns a pseudorandom number 97. realloc changes the size of previously allocated memory 98. remove erase a file 99. rename rename a file 100. rewind move the file position indicator to the beginning of a file 101. scanf read formatted input from STDIN 102. setbuf set the buffer for a specific stream 103. setjmp set execution to start at a certain point 104. setlocale sets the current locale 105. setvbuf set the buffer and size for a specific stream 106. signal register a function as a signal handler 107. sin sine 108. sinh hyperbolic sine 109. sprintf write formatted output to a buffer 110. sqrt square root 111. srand initialize the random number generator 112. sscanf read formatted input from a buffer 113. strcat concatenates two strings 114. strchr finds the first occurance of a character in a string 115. strcmp compares two strings 116. strcoll compares two strings in accordance to the current locale 117. strcpy copies one string to another 118. strcspn searches one string for any characters in another 119. strerror returns a text version of a given error code 120. strftime returns individual elements of the date and time 121. strlen returns the length of a given string 122. strncat concatenates a certain amount of characters of two strings 123. strncmp compares a certain amount of characters of two strings
  • 5. 124. strncpy copies a certain amount of characters from one string to another 125. strpbrk finds the first location of any character in one string, in another string 126. strrchr finds the last occurance of a character in a string 127. strspn returns the length of a substring of characters of a string 128. strstr finds the first occurance of a substring of characters 129. strtod converts a string to a double 130. strtok finds the next token in a string 131. strtol converts a string to a long 132. strtoul converts a string to an unsigned long 133. strxfrm converts a substring so that it can be used by string comparison functions 134. system perform a system call 135. tan tangent 136. tanh hyperbolic tangent 137. time returns the current calendar time of the system 138. tmpfile return a pointer to a temporary file 139. tmpnam return a unique filename 140. tolower converts a character to lowercase 141. toupper converts a character to uppercase 142. ungetc puts a character back into a stream 143. va_arg use variable length parameter lists 144. vprintf, vfprintf, and vsprintf write formatted output with variable argument lists