Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Example
- inline do |builder|
- builder.c %q{
- char *cs_fast(char *s1, char *s2) {
- char *start = s1;
- while (*s1 && *s2 && (*++s1 == *++s2));
- if ((*s1 != 0 && *s1 != 47) || (*s2 != 0 && *s2 != 47)) {
- while(*--s1 != 47);
- }
- if (s1-start <= 1) { *s1++; } // correction for '/'
- *s1 = 0;
- return s1;
- }
- }
- end
- end
Add Comment
Please, Sign In to add comment