ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/GBase.cpp
(Generate patch)
# Line 497 | Line 497
497    if (slen==0) slen=strlen(str);
498    int l=0;
499    int r=slen-1;
500 <  register char c;
500 >  char c;
501    while (l<r) {
502       c=str[l];str[l]=str[r];
503       str[r]=c;
504     //swap(str[l],str[r]);
504       l++;r--;
505       }
506    return str;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines