Re: Question
Norman Ramsey <[email protected]>
| Newsgroups | gmane.comp.lang.c-- |
|---|---|
| Message-ID | <[email protected]> |
> Hi all,
>
> Greetings!
> I have a question. Please help.
>
> printf("Save file is %s\n", saveFile);
> pd = pcap_dump_open(pf, saveFile);
> if (pd == PNUL)
> {
> printf("Pcap open dump failed \n" );
> exit(1);
> }
>
>
> If I comment the printf line, I get a core dump on the pcap_dump_open call
> If i uncomment, it works fine.
C-- is not C. Because the code in your example is not legal C--,
I think maybe you're asking this question in the wrong place.
Norman