Thanks for your help, I am pretty sure that there is no bugs, but let me check ... Serge Johnny Favorite (it means "Writhing Tentacle of Death") a écrit dans le message < 84mrvu02k3p@enews2.newsguy.com >... >clifford.smith wrote: >> sine I allocate memory with malloc for table in the main() it >> works perfectcly. As soon as I try to allocate this memory in >> a function (void my_funct() ... ) I get a segm. fault. >> >> What can I do. Is there another way to dynamicaly allocate mem ? > >The fault is in your code. There is absolutely no reason why you shouldn't >be able to malloc() in a function other than main(). Look for bugs. > >