C Language: Puts Function (Write String) - TechOnTheNet
Maybe your like
- Home
- C Language
- Standard Library Functions
- stdio.h
C Language: puts function(Write String) In the C Programming Language, the puts function writes a string (and then a new-line characters) to the stdout stream.
Syntax
The syntax for the puts function in the C Language is:
int puts(const char *s);Parameters or Arguments
s The string to write to stdout.Returns
The puts function returns a nonnegative value if successful. If an error occurs trying to write to stdout, the puts function will return EOF.
Required Header
In the C Language, the required header for the puts function is:
#include <stdio.h>Applies To
In the C Language, the puts function can be used in the following versions:
- ANSI/ISO 9899-1990
Similar Functions
Other C functions that are similar to the puts function:
- fputs function <stdio.h>
See Also
Other C functions that are noteworthy when dealing with the puts function:
- gets function <stdio.h>
- fgets function <stdio.h>
Databases
- SQL
- Oracle / PLSQL
- SQL Server
- MySQL
- MariaDB
- PostgreSQL
- SQLite
MS Office
- Excel
- Access
- Word
Web Development
- HTML
- CSS
- JavaScript
- Color Picker
Programming
- C Language
More
- ASCII
- Unicode
- Linux
- UNIX
- Techie Humor

C Language
- Introduction
- Compiling and Linking
- File Naming
- Preprocessor Directives
- #include
- #define
- #undef
- #if
- #ifdef
- #ifndef
- #elif
- #else
- #endif
- #warning
- #error
- Comments
- Variables
- Integer Variables
- Float Variables
- First Program

assert.h Functions
- assert

ctype.h Functions
- isalnum
- isalpha
- iscntrl
- isdigit
- isgraph
- islower
- isprint
- ispunct
- isspace
- isupper
- isxdigit
- tolower
- toupper

locale.h Functions
- localeconv
- setlocale

math.h Functions
- acos
- asin
- atan
- atan2
- ceil
- cos
- cosh
- exp
- fabs
- floor
- fmod
- frexp
- ldexp
- log
- log10
- modf
- pow
- sin
- sinh
- sqrt
- tan
- tanh

setjmp.h Functions
- longjmp
- setjmp

signal.h Functions
- raise
- signal

stdarg.h Functions
- va_arg
- va_end
- va_start

stdio.h Functions
- clearerr
- fclose
- feof
- ferror
- fflush
- fgetc
- fgetpos
- fgets
- fopen
- fprintf
- fputc
- fputs
- fread
- freopen
- fscanf
- fseek
- fsetpos
- ftell
- fwrite
- getc
- getchar
- gets
- perror
- printf
- putc
- putchar
- puts
- remove
- rename
- rewind
- scanf
- setbuf
- setvbuf
- sprintf
- sscanf
- tmpfile
- tmpnam
- ungetc
- vfprintf
- vprintf
- vsprintf

stdlib.h Functions
- abort
- abs
- atexit
- atof
- atoi
- atol
- bsearch
- calloc
- div
- exit
- free
- getenv
- labs
- ldiv
- malloc
- mblen
- mbstowcs
- mbtowc
- qsort
- rand
- realloc
- srand
- strtod
- strtol
- strtoll
- strtoul
- system
- wcstombs
- wctomb

string.h Functions
- memchr
- memcmp
- memcpy
- memmove
- memset
- strcat
- strchr
- strcmp
- strcoll
- strcpy
- strcspn
- strerror
- strlen
- strncat
- strncmp
- strncpy
- strpbrk
- strrchr
- strspn
- strstr
- strtok
- strxfrm

time.h Functions
- asctime
- clock
- ctime
- difftime
- gmtime
- localtime
- mktime
- strftime
- time
Home | About Us | Contact Us | Testimonials | Donate
While using this site, you agree to have read and accepted our Terms of Service and Privacy Policy.
Copyright © 2003-2026 TechOnTheNet.com. All rights reserved.
Tag » What Is Puts In C
-
Using The Puts() Function In C/C++ - DigitalOcean
-
What Is Puts In C?
-
C Library Function - Puts() - Tutorialspoint
-
C Gets() And Puts() Functions - Javatpoint
-
Puts Function In C - Linux Hint
-
Puts() Function In C | C File Handling - Fresh2Refresh
-
Puts() — Write A String - IBM
-
Puts() Library Function With Examples - CodeSansar
-
Puts() Vs Printf() For Printing A String - GeeksforGeeks
-
Learn The Examples Of C Puts() Function - EduCBA
-
C Gets() & Puts() - W3schools.blog
-
[C언어/C++] Gets, Puts 문자열 입출력 함수에 대해서. - 개발자 지망생
-
C++ Puts() - C++ Standard Library - Programiz
-
Puts() Function In C Language With Example