Sol Code

Tuesday, 11 December 2012

Reversing a String in C

void ReverseString (char *String)
{
char *Begin = String;
char *End = String + strlen(String) - 1;
char TempChar = '\0';
while (Begin < End)
{
TempChar = *Begin;
*Begin = *End;
*End = TempChar;
Begin++;
End--;
}
}
Posted by Unknown at 11:55
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C, programming

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2013 (2)
    • ►  January (2)
  • ▼  2012 (18)
    • ▼  December (17)
      • List Of Google’s Top 6 tricks
      • Proxy Connetion Explained
      • After that poor girl is dead now
      • A Basic Guide to the Internet
      • BandWidth Explained
      • Bit Torrent Tutorials
      • Utilizing Search Engine (Google tips and tricks)
      • Local File Inclusion / Remote File Inclusion Guide
      • XSS Cross Site Scripting Tutorial
      • Set of 7 rules for picking up a beautiful woman fo...
      • How to be Friends with Introverts
      • SQL Injection Tutorial
      • Hiding Text in an Image File
      • Facebook message spoofing trick
      • Reversing a String in C
      • Sorting a Linked List in C
      • Reversing a Singly Linked List in C
    • ►  November (1)

Labels

  • C (3)
  • data structures (2)
  • General Computing (4)
  • hacking (4)
  • programming (4)
  • psychology (2)
  • steganography (1)

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments
Solixious Klein. Powered by Blogger.