35#if defined(__STDC__) || defined(__cplusplus) 36TOUPPER(TPSVCINFO *rqst) 37#else 38TOUPPER(rqst) 39TPSVCINFO *rqst; 40#endif 41{ 42int i; 43 44for(i = 0; i < rqst->len-1; i++) 45rqst->data[i] = toupper(rqst->data[i]); ...
copy_if, includes, inplace_merge, lexicographical_compare, max_element, merge, min_element, minmax_element, nth_element, partition_copy, remove_copy, remove_copy_if, replace_copy, replace_copy_if, set_symmetric_difference, set_union, stable_partition, unique, unique_copy H...
#include <stdio.h> #include <stdlib.h> #include <string.h> #if defined(_POSIX_) || defined(__USE_POSIX) extern char **environ; #elif defined(_WIN32) _CRTIMP extern char **_environ; #endif int main(void) { if (setenv("NEW_VAR", "new_value", 1) != 0) { perror("setenv...
{ char *path = NULL; const char *temp = getenv("HOME"); if (temp != NULL) { path = strdup(temp); if (path == NULL) { perror("strdup"); exit(EXIT_FAILURE); } } else { fprintf(stderr, "$HOME environment variable is not defined\n"); exit(EXIT_FAILURE); } printf("%s\n...
35 #if defined(__STDC__) || defined(__cplusplus)36 TOUPPER(TPSVCINFO *rqst)37 #else38 TOUPPER(rqst)39 TPSVCINFO *rqst;40 #endif41 {42 int i;43 44 for(i = 0; i < rqst->len-1; i++)45 rqst->data[i] = toupper(rqst->data[i]);46 /* 転送されたバッファを要求の発信...
copy_if、includes、inplace_merge、lexicographical_compare、max_element、merge、min_element、minmax_element、nth_element、partition_copy、remove_copy、remove_copy_if、replace_copy、replace_copy_if、set_symmetric_difference、set_union、stable_partition、unique、unique_copyH...