K&R C
Exercises from The C Programming Lanaguage by Kernighan and Ritchie
Functions
get_line.h File Reference

Read a line and return its length. More...

Go to the source code of this file.

Functions

int get_line (char line[], int maxline)
 Read a line into s, up to lim characters. More...
 

Detailed Description

Read a line and return its length.

Author
Eric Bailey
Date
2019-04-13

Function Documentation

◆ get_line()

int get_line ( char  s[],
int  lim 
)

Read a line into s, up to lim characters.

Parameters
sA character array.
limThe length of s.
Returns
The full length of the line.