Shaul Karl <shaulka@bezeqint.net> writes: > How can it be? If malloc can not allocate memory it should return a NULL > pointer. How can it Seg fault? You have most likely overwritten the end of an array and overwritten malloc's accounting info, causing a segfault next time you malloc something. -- Alan Shutko <ats@acm.org> - In a variety of flavors! "Every man has his price. Mine is $3.95."