[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
 

pointer gymnastik



Hejsa

 Jeg har en streng på x antal bytes,som "abcdefg..xyzABCDEFG..XYZ123..890"
Jeg vil gerne finde ud af index'et på et bestemt tegn 'B' f.eks. Problemet
er at index() returnerer en pointer til tegnet, i stedet for en index ind
i strengen (som f.eks. at B er nr. 29. tegn i strengen). Hvordan for jeg
lige omregnet dette til et brugbart index? (bruger det til at indexere med
ind i strengen igen med chars[indx])


Thomas Mørch
licensed ham, with callsign OZ2AFO. License category: CEPT-1

If God had intended man to smoke He would have set him on fire.



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

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