pgmio.cpp File Reference

#include "pgmio.h"
#include "geometry.h"
#include "util.h"
#include "portable_fileio.h"

Include dependency graph for pgmio.cpp:

Go to the source code of this file.

Functions

int read_int_and_space (FILE *in)


Function Documentation

int @14::read_int_and_space ( FILE *  in  )  [static]

Definition at line 69 of file pgmio.cpp.

00070         {
00071                 char buf[32];
00072                 int c = 0;
00073 
00074                 int i = 0;
00075                 while (!isspace(c = getc(in))) {
00076                         buf[i] = static_cast < char >(c);
00077                         i++;
00078                 }
00079 
00080                 return atoi(buf);
00081         }


Generated on Tue Jun 11 12:41:27 2013 for EMAN2 by  doxygen 1.4.7