[lkml]   [1996]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: NULL strings cause "segmenation fault"
> 	if (strcmp(s, t) == 0) 
> It seems that if s or t are NULL pointers (as they are when first
> allocated) then I get the fault. According to the MAN page on strcmp, if

if you are using ELF you get a segfault. if you are using AOUT you
dont get a segfault. instead the process in question can consume
up to 99% of CPUcycles. so getting a segfault is better.

 \ /
  Last update: 2005-03-22 13:38    [W:0.042 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site