lkml.org 
[lkml]   [1996]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: NULL strings cause "segmenation fault"
Date
> 	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.107 / U:0.452 seconds]
©2003-2011 Jasper Spaans. Advertise on this site