comparison liboctave/lo-utils.cc @ 12918:f3a8d1efe2c1 stable

use gnulib:: qualifiers for more stdio functions * oct-parse.yy (text_getc): Use gnulib::getc instead of getc. (looking_at_classdef_keyword, looking_at_funciton_keyword): Use gnulib::ftell, gnulib::fseek, and gnulib::fgets instead of ftell, fseek, and fgets. * file-io.cc (Fmkstemp): Use gnulib::mkstemp instead of mkstemp. * lo-utils.cc (octave_fgets): Use gnulib::fgets instead of fgets. * c-file-ptr-stream.h (c_file_ptr_buf::seek): Use gnulib::fseek instead of fseek. (c_file_ptr_buf::tell): Use gnulib::ftell instead of ftell.
author John W. Eaton <jwe@octave.org>
date Thu, 04 Aug 2011 10:39:37 -0400
parents fd0a3ac60b0e
children b74cb659e757
comparison
equal deleted inserted replaced
12912:e116dd862879 12918:f3a8d1efe2c1
122 char *bufptr = buf; 122 char *bufptr = buf;
123 int len = 0; 123 int len = 0;
124 124
125 do 125 do
126 { 126 {
127 if (fgets (bufptr, grow_size, f)) 127 if (gnulib::fgets (bufptr, grow_size, f))
128 { 128 {
129 len = strlen (bufptr); 129 len = strlen (bufptr);
130 130
131 if (len == grow_size - 1) 131 if (len == grow_size - 1)
132 { 132 {