C ctype header functions

The following is the list of available functions in the ctype header file in the C Programming Language.

C math Functions

The mathematical library is a part of the C programming language standard library. All the C math functions take a single argument of double data type as the input and return the value of type double. However, the pow() function accepts two arguments and produces the power of data type double. 

Escape Sequence in C

Escape Sequence in C Programming is used to format the output. The general and most commonly used escape character is \n (to generate a Newline). The list of available escape sequences in this C Programming language. Escape Sequence Operation \a Alarm or Beep \b Backspace \f Form Feed \n New Line \r Carriage Return \t … Read more

Comments in C

Comments are to provide a piece of information about the code. A comment can help the other programmers to understand the program flow. In C Programming Language, there are two types of commenting options: Single Line and Multi-line. C Single Line Comment Example The Single Line comments start with two forward slashes(//). In this program, … Read more

ispunct in c

The C ispunct function is used to check whether the given character is a Punctuation or not. For example, the below function in C Programming accepts a character as the parameter and finds whether it is Punctuation or not. ispunct(char) ispunct in C Programming Example The ispunct function finds whether the user-given character is a Punctuation or … Read more

isxdigit in C

The C isxdigit function checks whether the given character is hexadecimal or not. The below isxdigit function accepts a character as the parameter and finds whether it is hexadecimal or not. isxdigit(char) isxdigit in C Programming Example The isxdigit function finds whether the user-given character is hexadecimal or not. #include <stdio.h> #include <ctype.h> int main() … Read more

C trunc function

The C trunc function is one of the math Functions used to return the truncated value of a given number or a specified expression. The syntax of the truncate function in this Programming is double trunc(double value); C trunc Function Example The math trunc Function allows you to find the truncated value of a given … Read more

C round function

The C round function is one of the Math Functions used to return the nearest value (rounded value) of a given number or a specified expression. The syntax of the math round function is double round(double round); C round Function Example The math round Function allows you to find the closest integer value of a given … Read more

C abs function

The C abs function is one of the Math methods used to return the absolute positive value of a given number. The syntax of the abs is as shown below. int abs(int number); C abs Function Example The C math abs Function allows you to return the absolute positive integer of a user given number. In … Read more

C strtok function

The strtok function in C is a String method to parse or tokenize a given string using a delimiter. The syntax of this strtok function is void *strtok(char *str, const char *delimiter); strtok in C Language Example The C strtok function is used to tokenize the given string based on the delimiter we gave. This program helps you … Read more