Changeset 2089 for trunk/src/libctests/glibc/stdio-common/test-fwrite.c
- Timestamp:
- Jun 27, 2005, 5:05:29 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/stdio-common/test-fwrite.c
-
Property cvs2svn:cvs-rev
changed from
1.1to1.2
r2088 r2089 35 35 line = NULL; 36 36 linesz = 0; 37 #ifdef HAVE_GETLINE 37 38 if (getline (&line, &linesz, f) != 5) 38 39 { … … 40 41 return 1; 41 42 } 43 #else 44 char fgetbuf [80]; 45 line = fgets (fgetbuf, sizeof(fgetbuf), f); 46 if (!line) 47 { 48 perror ("gets"); 49 return 1; 50 } 51 #endif 42 52 if (strcmp (line, "line\n")) 43 53 { … … 58 68 } 59 69 70 #ifdef HAVE_ASPRINTF 60 71 asprintf (&line, "\ 61 72 GDB is free software and you are welcome to distribute copies of it\n\ … … 63 74 There is absolutely no warranty for GDB; type \"show warranty\" for details.\n\ 64 75 "); 76 #endif 65 77 66 78 puts ("Test succeeded."); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
