Skip to content

Realization of a function that allows to read the file by a string with the help my own library.

Notifications You must be signed in to change notification settings

dzui42unit/Get_Next_Line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Get_Next_Line

Realization of a function that allows to read the file by a string with the help my own library.

In odred to read a whole file the function can be called in a loop.

Prorotye: get_next_line(int fd, char **str);

First parameter: file descriptor.

Second: string to write in.

  • get_next_line() returns 1 if the reading was sucessfull
  • get_next_line() returns 0 if the file ended.
  • get_next_line() returns -1 in case of error.

About

Realization of a function that allows to read the file by a string with the help my own library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published