- if(strcmp(arg_onTV, "/BS") == 0){
- STATION *sta = NULL;
- int sta_count = 0;
- svttop = calloc(1, sizeof(SVT_CONTROL));
- char *head="BS";
- GetSDT(infile, svttop, secs, SECCOUNT,&sta, &sta_count, head, 1);
- checkSta_BS(&sta,&sta_count);
- pStas = sta;
- staCount = sta_count;
- //staCount = sizeof(pStas) / sizeof (STATION);
- act = 0 ;
- }else if(strcmp(arg_onTV, "/CS") == 0){
- STATION *sta=NULL;
- int sta_count = 0;
- svttop = calloc(1, sizeof(SVT_CONTROL));
- char *head="CS";
- GetSDT(infile, svttop, secs, SECCOUNT,&sta, &sta_count, head, 1);
- checkSta(&sta,&sta_count);
- pStas = sta;
- staCount = sta_count;
- //staCount=sizeof(pStas) / sizeof (STATION);
- act = 0 ;
- }else if(strcmp(arg_onTV, "/TEST") == 0){
- STATION *sta=NULL;
- int sta_count = 0;
- svttop = calloc(1, sizeof(SVT_CONTROL));
- char *head="TEST";
- GetSDT(infile, svttop, secs, SECCOUNT,&sta, &sta_count, head, 0);
- checkSta(&sta,&sta_count);
- //if (sta_count)
- printf("Station count: %d\n1st ontv=%s,name=%s\n",sta_count, sta[0].ontv, sta[0].name);
- pStas = sta;
- staCount = sta_count;// sizeof(pStas) / sizeof (STATION);
- act = 0 ;
- }else if(strcmp(arg_onTV, "/TIME") == 0){