It's strange! I wrote such fragment:
No. Doesn't compile at all.
main.c:4: error: `MAX_DTMF_MESSAGE_SIZE' undeclared here (not in a
function)
main.c:5: error: syntax error before string constant
main.c:5: warning: type defaults to `int' in declaration of `printf'
main.c:5: warning: conflicting types for built-in function 'printf'
main.c:5: warning: data definition has no type or storage class
main.c:6: error: syntax error before string constant
main.c:6: warning: type defaults to `int' in declaration of `strcat'
main.c:6: warning: conflicting types for built-in function 'strcat'
main.c:6: warning: data definition has no type or storage class
main.c:7: error: syntax error before string constant
main.c:7: warning: type defaults to `int' in declaration of `printf'
main.c:7: warning: data definition has no type or storage class
main.c:8: error: syntax error before '[' token
main.c:8: warning: type defaults to `int' in declaration of `strcat'
main.c:8: warning: data definition has no type or storage class
main.c:9: error: syntax error before string constant
main.c:9: warning: type defaults to `int' in declaration of `printf'
main.c:9: warning: data definition has no type or storage class
main.c:10: warning: type defaults to `int' in declaration of `strcat'
main.c:10: warning: parameter names (without types) in function
declaration
main.c:10: warning: data definition has no type or storage class
main.c:11: error: syntax error before string constant
main.c:11: warning: type defaults to `int' in declaration of `printf'
main.c:11: warning: data definition has no type or storage class
main.c:12: error: syntax error before string constant
main.c:12: warning: type defaults to `int' in declaration of `strcat'
main.c:12: warning: data definition has no type or storage class
main.c:13: error: syntax error before string constant
main.c:13: warning: type defaults to `int' in declaration of `printf'
main.c:13: warning: data definition has no type or storage class
main.c:14: warning: type defaults to `int' in declaration of `strcat'
main.c:14: warning: parameter names (without types) in function
declaration
main.c:14: warning: data definition has no type or storage class
main.c:15: error: syntax error before string constant
main.c:15: warning: type defaults to `int' in declaration of `printf'
main.c:15: warning: data definition has no type or storage class
main.c:4: error: storage size of `messageBody' isn't known
Please provide a compiling source for a deeper analysis. We are not
psychic.
--
Emmanuel
The C-FAQ:
http://www.eskimo.com/~scs/C-faq/faq.html
The C-library:
http://www.dinkumware.com/refxc.html
..sig under repair