Skip to content

Commit

Permalink
Regenerated from source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Aug 13, 2001
1 parent 6f47f64 commit 1054384
Show file tree
Hide file tree
Showing 2 changed files with 782 additions and 697 deletions.
4 changes: 3 additions & 1 deletion manual/filesys.texi
Original file line number Diff line number Diff line change
Expand Up @@ -1138,14 +1138,16 @@ call @code{readlink} again. Here is an example:

@smallexample
char *
readlink_malloc (char *filename)
readlink_malloc (const char *filename)
@{
int size = 100;
while (1)
@{
char *buffer = (char *) xmalloc (size);
int nchars = readlink (filename, buffer, size);
if (nchars < 0)
return NULL;
if (nchars < size)
return buffer;
free (buffer);
Expand Down
Loading

0 comments on commit 1054384

Please sign in to comment.