thanks.here's an example:
//module sup
#include "module_inf.h"
int var;
//modify var
void modif_var(void){
var=0;
//call of a function of module1 which reads var and do other instructions...
Type: Posts; User: akrlot
thanks.here's an example:
//module sup
#include "module_inf.h"
int var;
//modify var
void modif_var(void){
var=0;
//call of a function of module1 which reads var and do other instructions...
thx for reply but i haven't other choice i must use global variables.so which solution seems to work better?
hi;
i have a project with many modules. my questions are :
-if functions of module_superior call functions of module_inferior can i access global variable of module_superior in module_inferior(the...
hi;
do i need to use free with each malloc?
how could i free memory in this function:
char *function(){
char * p=malloc(10*sizeof(char));
.......
....
return p;
hello;
What is the difference between synchronous and asynchronous functions?
How could i make an asynchronous function synchronous ?
hello;
i need a simple ftp client implementation in C.i searched google but i found complicated code.thx