我该输入什么?
enum success {FAIL, SUCCESS, ERROR, INVALID};struct uodStrSuccess
{
enum success returnState;
char errorCode[10];
char* charValue;
int intValue;
}typedef strSuccess;
void uodstrlen(char* source, strSuccess* result);
int main()
{
strSuccess result;
char* string1 = "Pizza";
printf("Length of string 1: %d\n", uodstrlen(string1, result.));
return 0;
}
void uodstrlen(char* source, strSuccess* result)
{
char* w_len = source;
while (*w_len != '\0')
{
w_len++;
}
}
粗字体那边我该放入什么?还有我的void uodstrlen里应该要有些什么?