Guillem Jover
1f0b016e97
Use UTF-8 copyright symbols for non-imported files
2009-05-20 04:20:21 +02:00
Guillem Jover
74ae34e792
Fix buffer leaks in fgetln
...
Cache the size and the buffer allocated by getline as static variables.
2009-05-15 21:26:09 +02:00
Guillem Jover
deb9f56ceb
Change fgetln to return the correct length value
...
Set len to 0 on error conditions to mimmic FreeBSD behaviour, and return
the amount of read characters on success, instead of the allocated size
by getline.
Reported-by: Jief L. <jief1.l@gmail.com >
2009-05-15 21:23:03 +02:00
Guillem Jover
fafffd1f7e
fgetln: Fix coding style
2008-07-09 08:26:07 +03:00
Guillem Jover
47109e39d5
fgetln: Fix function to make it actually work
...
Reported by Thorsten Glaser.
2008-07-09 08:22:30 +03:00
Guillem Jover
da92787d48
Ansify function arguments
2008-07-09 07:46:23 +03:00
Guillem Jover
d699e4bc0e
Add license header
...
With Hector's agreement.
2008-06-18 08:05:54 +03:00
Guillem Jover
5372b73685
Move sources to src/
2008-05-06 08:50:42 +03:00