文字列を返す関数を書いてみた。非常にシンプルな例だが。。。 #include <stdio.h> #include <stdlib.h> #include <string.h> char * returnString(char * v){ char * response; response = (char *)malloc(strlen(v)); strcpy(response, v); return response; } int main(int argc, char </string.h></stdlib.h></stdio.h>…
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。