Library Funciton Reference

Course- C IN LINUX >

Full details of all the functions available can be found at: http://www.gnu.org/sotware/libc/manual/

Common Library Functions by Header file:

Math.h

	Trigonometric Functions e.g.:
		cos sin tan
	Exponential, Logarithmic, and Power Functions e.g.:
		exp log pow sqrt
	Other Math Functions e.g.:
		ceil fabs floor frmod

stdio.h

	File Functions e.g.:
		fclose feof fgetpos fopen fread fseek
	Formatted I/O Functions e.g.:
		printf scanf Functions
	Character I/O Functions e.g.:
		fgetc fgets fputc fputs getc getchar gets putc putchar puts

stdlib.h
	String Functions e.g.:
		atof atoi atol
	Memory Functions e.g.:
		calloc free malloc
	Environment Functions e.g.:
		abort exit getenv system
	Math Functions e.g.:
		abs div rand

String.h
	String Functions e.g.:
		strcat strchr strcmp strncmp strcpy strncpy strcspn strlen strstr strtok

time.h
	Time Functions e.g.:
		asctime clock difftime time                   
                   

There is no point in learning about library functions until you ind you need to do something which then leads you to look for a function or a library of functions that has been written for this purpose. You will need to understand the function signature – or what the argument list means and how to use it and what will be returned by the function or done to variables passed as pointers to functions.