Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

The GNU C Programming Tutorial - Common library functions

Node:Common library functions, Next:, Previous:Kinds of library, Up:Libraries



Common library functions

Checking character types. Handling strings. Doing maths.

The libraries in GCC contain a repertoire of standard functions and macros. There are many different kinds of function and macro in the libraries. Here are a few of the different kinds available, with the header files you can use to access them:

  • Character handling: ctype.h
  • Mathematics: math.h
  • String manipulation: string.h

You may find it useful to read the header files yourself. They are usually found in the directories /usr/include and its subdirectories on GNU/Linux systems. The three header files listed above can be found in /usr/include; there is a second version of ctype.h in /usr/include/linux.1


Footnotes

  1. The version of ctype.h in the /usr/include directory proper is the one that comes with glibc; the one in /usr/include/linux is a special version associated with the Linux kernel. You can specify the one you want with a full pathname inside double quotes (for example, #include "/usr/include/linux/ctype.h"), or you can use the -I option of gcc to force GCC to search a set of directories in a specific order. See Building a library, for more information.)


 
 
  Published under free license. Design by Interspire