visual c++ - Getting error passing char array pointer into a function in C -
getting error passing char array pointer function in c. using vc++ editor build this.
error c3861: 'decodedata': identifier not found
decoder.h
int decodeaudiobytes(); int decodedata(int argc, char* argv[]);
decoder.c
int decodeaudiobytes() { char* argv[] = { "test", "test1" }; homecoming decodedata(2, argv); } int decodedata( int argc, char* argv[] ) { char speechoutfilename[ 150 ], bitinfilename[ 150 ]; int args = 0; strcpy( bitinfilename, argv[ args ] ); args++; strcpy( speechoutfilename, argv[ args ] ); args++; }
put definition of decodedata
before decodeaudiobytes
visual-c++
No comments:
Post a Comment