Advertisement
captmicro

Untitled

Feb 20th, 2010
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. size_t ufstrlen(const char *str)
  2. {
  3.     __asm
  4.     {
  5.         sub ECX, ECX
  6.         not ECX
  7.         sub AL, AL
  8.         mov EDI, str
  9.         cld
  10.         repne scasb
  11.         not ECX
  12.         dec ECX
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement