FACT++  1.0
static void t_intin ( int *  status)
static

Definition at line 821 of file palTest.c.

References i, palIntin(), and viv().

Referenced by main().

821  {
822  const char s[] = " -12345, , -0 2000 + ";
823  /* 1234567890123456789012345678 */
824  int i = 1;
825  long n = 0;
826  int j;
827 
828  palIntin ( s, &i, &n, &j );
829  viv ( i, 10, "palIntin", "I1", status );
830  viv ( n, -12345, "palIntin", "V1", status );
831  viv ( j, -1, "palIntin", "J1", status );
832 
833  palIntin ( s, &i, &n, &j );
834  viv ( i, 12, "palIntin", "I2", status );
835  viv ( n, -12345, "palIntin", "V2", status );
836  viv ( j, 1, "palIntin", "J2", status );
837 
838  palIntin ( s, &i, &n, &j );
839  viv ( i, 17, "palIntin", "I3", status );
840  viv ( n, 0, "palIntin", "V3", status );
841  viv ( j, -1, "palIntin", "J3", status );
842 
843  palIntin ( s, &i, &n, &j );
844  viv ( i, 23, "palIntin", "I4", status );
845  viv ( n, 2000, "palIntin", "V4", status );
846  viv ( j, 0, "palIntin", "J4", status );
847 
848  palIntin ( s, &i, &n, &j );
849  viv ( i, 29, "palIntin", "I5", status );
850  viv ( n, 2000, "palIntin", "V5", status );
851  viv ( j, 1, "palIntin", "J5", status ); /* Note that strtol does not care about a + */
852 
853 }
int i
Definition: db_dim_client.c:21
void palIntin(const char *string, int *nstrt, long *ireslt, int *jflag)
Definition: palIntin.c:112
static void viv(int ival, int ivalok, const char *func, const char *test, int *status)
Definition: palTest.c:65

+ Here is the call graph for this function:

+ Here is the caller graph for this function: