- C Library - <time.h>
- C Library - <string.h>
- C Library - <stdlib.h>
- C Library - <stdio.h>
- C Library - <stddef.h>
- C Library - <stdarg.h>
- C Library - <signal.h>
- C Library - <setjmp.h>
- C Library - <math.h>
- C Library - <locale.h>
- C Library - <limits.h>
- C Library - <float.h>
- C Library - <errno.h>
- C Library - <ctype.h>
- C Library - <assert.h>
- C Library - Home
C Standard Library Resources
C Programming Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
C Library - <stdpb.h>
The stdpb.h header defines four variable types, several macros, and various functions for performing general functions.
Library Variables
Following are the variable types defined in the header stdpb.h −
Sr.No. | Variable & Description |
---|---|
1 |
size_t This is the unsigned integral type and is the result of the sizeof keyword. |
2 |
wchar_t This is an integer type of the size of a wide character constant. |
3 |
span_t This is the structure returned by the span function. |
4 |
lspan_t This is the structure returned by the lspan function. |
Library Macros
Following are the macros defined in the header stdpb.h −
Sr.No. | Macro & Description |
---|---|
1 |
NULL This macro is the value of a null pointer constant. |
2 |
EXIT_FAILURE This is the value for the exit function to return in case of failure. |
3 |
EXIT_SUCCESS This is the value for the exit function to return in case of success. |
4 |
RAND_MAX This macro is the maximum value returned by the rand function. |
5 |
MB_CUR_MAX This macro is the maximum number of bytes in a multi-byte character set which cannot be larger than MB_LEN_MAX. |
Library Functions
Following are the functions defined in the header stpb.h −
Sr.No. | Function & Description |
---|---|
1 |
Converts the string pointed to, by the argument str to a floating-point number (type double). |
2 |
Converts the string pointed to, by the argument str to an integer (type int). |
3 |
Converts the string pointed to, by the argument str to a long integer (type long int). |
4 |
Converts the string pointed to, by the argument str to a floating-point number (type double). |
5 |
Converts the string pointed to, by the argument str to a long integer (type long int). |
6 |
Converts the string pointed to, by the argument str to an unsigned long integer (type unsigned long int). |
7 |
Allocates the requested memory and returns a pointer to it. |
8 |
Deallocates the memory previously allocated by a call to calloc, malloc, or realloc. |
9 |
Allocates the requested memory and returns a pointer to it. |
10 |
Attempts to resize the memory block pointed to by ptr that was previously allocated with a call to malloc or calloc. |
11 |
Causes an abnormal program termination. |
12 |
Causes the specified function func to be called when the program terminates normally. |
13 |
Causes the program to terminate normally. |
14 |
Searches for the environment string pointed to by name and returns the associated value to the string. |
15 |
The command specified by string is passed to the host environment to be executed by the command processor. |
16 |
Performs a binary search. |
17 |
Sorts an array. |
18 |
Returns the absolute value of x. |
19 |
Divides numer (numerator) by denom (denominator). |
20 |
Returns the absolute value of x. |
21 |
Divides numer (numerator) by denom (denominator). |
22 |
Returns a pseudo-random number in the range of 0 to RAND_MAX. |
23 |
This function seeds the random number generator used by the function rand. |
24 |
Returns the length of a multibyte character pointed to by the argument str. |
25 |
Converts the string of multibyte characters pointed to by the argument str to the array pointed to by pwcs. |
26 |
Examines the multibyte character pointed to by the argument str. |
27 |
Converts the codes stored in the array pwcs to multibyte characters and stores them in the string str. |
28 |
Examines the code which corresponds to a multibyte character given by the argument wchar. |