FEDRA emulsion software from the OPERA Collaboration
EdbBasic.h File Reference
#include <stdio.h>
Include dependency graph for EdbBasic.h:

Go to the source code of this file.

Functions

int Sfscanf (FILE *fp, char *mes,...)
 

Function Documentation

◆ Sfscanf()

int Sfscanf ( FILE *  fp,
char *  mes,
  ... 
)
16 {
17  char buffer[256]="";
18  int ncols;
19  va_list marker;
20 
21  if (fgets (buffer, 256, fp) == NULL)
22  return -1;
23  else{
24  va_start(marker,mes);
25  ncols = vsscanf( buffer, mes, marker );
26  va_end(marker);
27  }
28  return ncols;
29 }
#define NULL
Definition: nidaqmx.h:84