[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
 

Sv: [CPROG] Bugg eller feature ??



Det er også det rigtige..
Rigtig (dejlig) C-kode skal kunne kompileres på hvilken som helst
kompiler.

- Jack

Søren H. Sørensen <sslug@sslug> skrev i en
nyhedsmeddelelse:sslug@sslug
> Med al den snak om signed/unsigned, har jeg selv engang haft problemet,
> hvor jeg testede om en værdi var mindre end 0x20, som slut på en streng.
> Dette ramte de danske tegn æøå, der ender som negative værdier i en
> default "char" i gcc. Den er nemlig signed. Efterfølgende, for også at
> være kompatibelt med andre c-compilere indførte jeg to små linier i min
> private header-fil:
> #define uchar unsigned char
> #define ulong unsigned long
>
> Så bruger jeg bare de to hjemmelavede typer nede i programmet. "uchar"
> til alle tekster med klartekst.
>
> M.v.h.
> Søren H. Sørensen
>
> Jesper Monsted wrote:
> >
> > > Det er kun 'char' der kan variere mellem signed/unsigned, int/short
> > > int/long er altid signed.
> >
> > Pladder, du kan sagtens lave f.eks. "unsigned long int"
> >
> > /Jesper
> >
> > "Microsoft does have a Year 2000 problem. We're it"
> > (c) unknown       - Go Linux! http://www.linux.org/
> >
> >  Jesper Monsted - RIPE: JM42 - sslug@sslug
>




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 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] *