/device/google/cuttlefish_common/common/libs/utils/ |
environment.cpp | 25 const char* const valstr = getenv(varname.c_str()); local 26 if (!valstr) { 29 return valstr;
|
/external/ppp/pppd/plugins/radius/ |
util.c | 33 void rc_str2tm (char *valstr, struct tm *tm) 40 if (strncmp (months[i], valstr, 3) == 0) 48 tm->tm_mday = atoi (&valstr[4]); 51 tm->tm_year = atoi (&valstr[7]) - 1900;
|
dict.c | 41 char valstr[AUTH_ID_LEN]; local 108 n = sscanf(buffer, "%s%s%s%s%s", dummystr, namestr, valstr, typestr, vendorstr); 136 if (!isdigit (*valstr)) 143 value = atoi (valstr); 212 namestr, valstr) != 4) 239 if (!isdigit (*valstr)) 246 value = atoi (valstr);
|
avpair.c | 526 char valstr[AUTH_ID_LEN]; local 578 rc_fieldcpy (valstr, &buffer); 600 strcpy (pair->strvalue, valstr); 601 pair->lvalue = strlen(valstr); 605 if (isdigit (*valstr)) 607 pair->lvalue = atoi (valstr); 611 if ((dval = rc_dict_findval (valstr)) 614 error("rc_avpair_parse: unknown attribute value: %s", valstr); 630 pair->lvalue = rc_get_ipaddr(valstr); 639 rc_str2tm (valstr, tm) [all...] |
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
cpuinfo.c | 33 char *istr = NULL, *valstr = NULL, *saveptr = NULL; local 62 valstr = strchr(saveptr, ':'); 63 if (valstr == NULL) 65 valstr++; 66 sscanf(valstr, " %d\n", &data);
|
/external/gflags/src/ |
util.h | 341 inline bool SafeGetEnv(const char *varname, std::string &valstr) 347 valstr = val; 352 valstr = val;
|
gflags.cc | 1367 std::string valstr; local [all...] |
/external/toybox/toys/pending/ |
dhcp.c | 389 char *option, *valstr, *grp, *tp; local 423 valstr = strtok(NULL, "\n"); 424 if (!valstr) error_exit("option %s has no value defined.\n", option); 425 dbg(" value : %-20s \n ", valstr); 430 convtmp = strtou32(valstr); 431 if (convtmp < 0) error_exit("Invalid/wrong formated number %s", valstr); 438 convtmp = strtou32(valstr); 439 if (convtmp < 0) error_exit("Invalid/malformed number %s", valstr); 446 convtmp = strtou32(valstr); 447 if (convtmp < 0) error_exit("Invalid/malformed number %s", valstr); [all...] |
dhcpd.c | 544 char *option, *valstr, *grp, *tp; local 579 if (!(valstr = strtok(NULL, " \t"))) { 583 dbg(" value : %-20s : ", valstr); 588 strtou32(valstr, &convtmp); 594 strtou32(valstr, &convtmp); 600 strtou32(valstr, &convtmp); 606 striptovar(valstr, options_list[count].val); 609 options_list[count].len = strlen(valstr); 610 options_list[count].val = strdup(valstr); 613 while(valstr){ [all...] |
/external/iputils/Modules/ |
pg3.c | 553 char name[16], valstr[32]; local 641 char *v = valstr; 644 len = strn_len(&buffer[i], sizeof(valstr)-1); 645 memset(valstr, 0, sizeof(valstr)); 646 strncpy(valstr, &buffer[i], len);
|
/device/generic/goldfish/camera/ |
EmulatedCamera.cpp | 288 const char* valstr = NULL; local 290 valstr = mParameters.get(EmulatedCamera::FACING_KEY); 291 if (valstr != NULL) { 292 if (strcmp(valstr, EmulatedCamera::FACING_FRONT) == 0) { 295 else if (strcmp(valstr, EmulatedCamera::FACING_BACK) == 0) { 302 valstr = mParameters.get(EmulatedCamera::ORIENTATION_KEY); 303 if (valstr != NULL) { 304 info->orientation = atoi(valstr); [all...] |
/device/google/cuttlefish_common/guest/hals/camera/ |
EmulatedCamera.cpp | 242 const char* valstr = NULL; local 244 valstr = mParameters.get(EmulatedCamera::FACING_KEY); 245 if (valstr != NULL) { 246 if (strcmp(valstr, EmulatedCamera::FACING_FRONT) == 0) { 248 } else if (strcmp(valstr, EmulatedCamera::FACING_BACK) == 0) { 255 valstr = mParameters.get(EmulatedCamera::ORIENTATION_KEY); 256 if (valstr != NULL) { 257 info->orientation = atoi(valstr); [all...] |
/external/libcups/cups/ |
testdest.c | 649 char valstr[256]; local 651 snprintf(valstr, sizeof(valstr), "%d", val); 652 printf(" %s (%s)\n", ippEnumString(option, ippGetInteger(attr, i)), cupsLocalizeDestValue(http, dest, dinfo, option, valstr));
|