-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathline.h
More file actions
27 lines (25 loc) · 781 Bytes
/
Copy pathline.h
File metadata and controls
27 lines (25 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* @file line.h
* @author Meles Meles
*
* line.h is a header file for line.c. It holds the function
* prototypes for readLine() and measureLine().
*/
#include <stdio.h>
#include <stdlib.h>
/**
* This function counts and returns the number of characters in the next
* line of input from the given file. If there’s no more input, this function
* will return zero
*
* @param fp which is a pointer to a file that is read
* @return int count of characters in the next line else return zero for no more input.
*/
int measureLine( FILE *fp );
/**
* This function will read the next input line from fp, storing it in str.
*
* @param fp is the file stream read from
* @param str is the array the characters are stored
*/
void readLine( FILE *fp, char str[] );