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 - puts

Node:puts, Next:, Previous:Unformatted string output, Up:Unformatted string output



puts

The most convenient function for printing a simple message on standard outout is puts. It is even simpler than printf, since you do not need to include a newline character -- puts does that for you.

Using puts couldn't be simpler. Here is an example:

puts ("Hello, multiverse.");

This code example will print the string Hello, multiverse. to standard output.

The puts function is safe and simple, but not very flexible. See Formatted string output, if you want to print fancier output.

 
 
  Published under free license. Design by Interspire