how to call a function inside another function in file like utility.c
-
That question is impossible to answer. Please give some proper detailed context about your problem. Calling a function is just the same wherever you call it from.
utility.c file consist of following function:
function list_file_directory() // function 1
{
//listing wave file from directory;
}
function wavread() // function 2{
// reading the .wav file;
}
function noise
{
//here i want to call the both above function and perform futher calculation //is it possible?
}main.c
{
call function 1
{display}
call function 2
{
display
}
} -
utility.c file consist of following function:
function list_file_directory() // function 1
{
//listing wave file from directory;
}
function wavread() // function 2{
// reading the .wav file;
}
function noise
{
//here i want to call the both above function and perform futher calculation //is it possible?
}main.c
{
call function 1
{display}
call function 2
{
display
}
} -
In C, you cannot define a function inside another function. All functions must stand on their own.
The difficult we do right away... ...the impossible takes slightly longer.