-
kiwi_30ok then erricone :)
-
nonieWhat is the preferable way to copy a string in C? asprintf(&rpc_user, "%s", optarg); or rpc_user = strndup(optarg, MAX_DATA_SIZE);
-
nonieBen Klemens author of »21st Century C« recommends asprintf.
-
nonieBut the readability deteriorates to my opinion.