9 char *s1,
char *s2,
char *s3,
char *s4,
char *s5)
15 unsigned char mon_name[12][4] = {
16 {
"Jan"}, {
"Feb"}, {
"Mar"}, {
"Apr"}, {
"May"}, {
"Jun"},
17 {
"Jul"}, {
"Aug"}, {
"Sep"}, {
"Oct"}, {
"Nov"}, {
"Dec"}
20 char buf[6][80],emsg[80];
36 for (
i=0;
i < 6;
i++)
40 strncpy(
buf[0],s1,
sizeof(
buf[0]));
45 strncpy(
buf[1],s2,
sizeof(
buf[1]));
50 strncpy(
buf[2],s3,
sizeof(
buf[2]));
56 strncpy(
buf[3],s4,
sizeof(
buf[3]));
61 strncpy(
buf[4],s5,
sizeof(
buf[4]));
67 sprintf(emsg,
"\n\n%3s %2d %2d %2d:%02d program:%-16s",
68 mon_name[tp->tm_mon], tp->tm_mday, tp->tm_year,
69 tp->tm_hour, tp->tm_min,
pname);
78 while (
buf[
i][0] != 0 )
91 while (
buf[
i][0] != 0 )
int error_log(char *pname, FILE *fp_log, int pflag, int eflag, char *s1, char *s2, char *s3, char *s4, char *s5)
sprintf(fbuf,"/usr/mapper/nexrad/ngrid.%02d-%02d-%02d-%02d", year, month, day, hour)
fprintf(fp,"%d %d %d %d 1\n", iminx, iminy, maxi, maxj)