Lines Matching refs:result
513 char *result = malloc(strlen(str) + 1);
514 return result ? strcpy(result, str) : result;
1378 /* If TEMPNAME, the result is in the temporary file TEMPNAME even
1406 char *result = NULL;
1413 f = result = emalloc(linksize);
1414 memcpy(result, directory, len);
1415 result[len] = '/';
1416 memcpy(result + lenslash, target, targetsize);
1426 if (!result)
1427 result = emalloc(dotdotetcsize);
1429 memcpy(result + 3 * i, "../", 3);
1430 memmove(result + 3 * dotdots, f + dir_len, taillen + 1);
1432 return result;
1566 cached result of a previous call to this function with the same NAME. */
2872 stringoffset(char *result, zic_t offset)
2882 result[0] = '-';
2890 result[0] = '\0';
2893 len += sprintf(result + len, "%d", hours);
2895 len += sprintf(result + len, ":%02d", minutes);
2897 len += sprintf(result + len, ":%02d", seconds);
2903 stringrule(char *result, struct rule *const rp, zic_t save, zic_t stdoff)
2918 result += sprintf(result, "%d", total + rp->r_dayofmonth - 1);
2920 result += sprintf(result, "J%d", total + rp->r_dayofmonth);
2947 result += sprintf(result, "M%d.%d.%d",
2955 *result++ = '/';
2956 if (! stringoffset(result, tod))
2990 stringzone(char *result, struct zone const *zpfirst, ptrdiff_t zonecount)
3008 result[0] = '\0';
3071 len = doabbr(result, stdzp, stdrp ? stdrp->r_abbrvar : NULL,
3073 offsetlen = stringoffset(result + len, - stdzp->z_stdoff);
3075 result[0] = '\0';
3081 len += doabbr(result + len, dstzp, dstrp->r_abbrvar,
3084 offsetlen = stringoffset(result + len,
3087 result[0] = '\0';
3092 result[len++] = ',';
3093 c = stringrule(result + len, dstrp, dstrp->r_save, stdzp->z_stdoff);
3095 result[0] = '\0';
3100 len += strlen(result + len);
3101 result[len++] = ',';
3102 c = stringrule(result + len, stdrp, dstrp->r_save, stdzp->z_stdoff);
3104 result[0] = '\0';