matthew french mfrench42yahoocouk brian odonoghue wrote code fragment fora0a some_thing_goes_here ifbstrlensomestring4 do_something unfortunately strlen relatively expensive operation using c big issue stringlength declared const long modify string object compiler caching think possible c though could write code fragment fora0lstrlensomestringala some_thing_goes_here ifbl4 do_something note previous point some_thing_goes_here do_something long functions real need optimise code also string manipulation much better approach would char c char p forpsomestringcp0p some_thing_goes_here ifp40 do_something works c used 0 terminated strings improves performance always pointer character instead array manipulation strictly speaking variable c required compilers smart enough store p register problem uses pointer arithmetic make code illegable managed carefully one reasons prefer java programming tasks matthew __________________________________________________ yahoo everything youll ever need one web page news sport email music charts httpukmyyahoocom irish linux users group iluglinuxie httpwwwlinuxiemailmanlistinfoilug unsubscription information list maintainer listmasterlinuxie fri 9 aug 2002 103441 0100 ilug slashdot ew dijkstra humor