> Hi All,
> I am new to Linux kernel.Will be thankfull if someone helps.
>
> What is SEGMENTATION FAULT? In which conditions does it occur?
Segmentation faults usually occur when you access memory you don't
own.
>
> #include<unistd.h>
> #include<errno.h>
> #include<stdlib.h>
> void main()
> {
> char *ptr="error",ptr1,ptr2;
|____|__________ Not pointers
*ptr1, *ptr2;
|______|________ Need the splat
>
Cheers,
DJ
Richard B. Johnson
Analogic Corporation
Penguin : Linux version 2.1.55 on an i586 machine (66.15 BogoMips).
Warning : It's hard to stay on the trailing edge of technology.
Linux : Engineering tool
Spam : sync@localhost, daemon@loghost