[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] problemer med index()



Jeg skiftede index ud med strchr, det ser ud til at virke fint.
Det undrer mig bare at gcc først meldte fejlen da jeg tilføjede -Wall, før
det havde jeg -ansi den burde da have fanget index()?

Mvh. Thomas

----- Original Message -----
From: "Klaus S. Madsen" <sslug@sslug>
To: <sslug@sslug>
Sent: Tuesday, April 16, 2002 9:40 PM
Subject: Re: [CPROG] problemer med index()


> On Tue, Apr 16, 2002 at 08:50:51PM +0200, Thomas Bregentved Rasmussen
wrote:
> > Hej
> >
> > Jeg benytter funktionen index() i et stykke kode men jeg får følgende
> > fejl/warning:
> > warning: implicit declaration of function 'index'
> >
> > Jeg har inkluderet string.h, som er den fil der indeholder index().
> Hvordan ser din gcc kommandolinie ud? Hvis du har defineret f.eks.
> _GNU_SOURCE, så skal du vist også definere _BSD_SOURCE, da index ellers
> ikke er med (det er ikke posix)...
>
> Derudover er det pænere at bruge strchr, da det er en posix funktion...
>
> --
> /-----------------------------------------------------\
> | Klaus S. Madsen      | "Failure is not an option... |
> | ICQ: 45400164        |  It comes bundled with your  |
> | www.hjernemadsen.org |  Microsoft products!"        |
> \-----------------------------------------------------/



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *