Lines Matching refs:strs
382 char *strs;
404 strs = (char *)a_calloc(1, len + 4);
420 free(strs);
429 free(strs);
434 (void) strncpy(strs, str, 4);
435 strs[4] = '\0';
436 tme->tm_year = atoi(strs) - 1900; /* get the year */
437 (void) strncpy(strs, str + 4, 2);
438 strs[2] = '\0';
439 tme->tm_mon = atoi(strs) - 1; /* get months */
440 (void) strncpy(strs, str + 6, 2);
441 strs[2] = '\0';
442 tme->tm_mday = atoi(strs); /* get days */
444 (void) strncpy(strs, str + 8, 2);
445 strs[2] = '\0';
446 tme->tm_hour = atoi(strs); /* get hours */
449 (void) strncpy(strs, str + 10, 2);
450 strs[2] = '\0';
451 tme->tm_min = atoi(strs); /* get minutes */
454 (void) strncpy(strs, str + 12, 2);
455 strs[2] = '\0';
456 tme->tm_sec = atoi(strs); /* get seconds */
458 free(strs);