comparison mcabber/src/utils.c @ 1192:7b8765c10abb

New command: /source
author Mikael Berthe <mikael@lilotux.net>
date Sat, 21 Apr 2007 12:06:13 +0200
parents 9726c78a91f3
children c96fef31ff96
comparison
equal deleted inserted replaced
1191:b2ed413d8f3d 1192:7b8765c10abb
646 } 646 }
647 return NULL; 647 return NULL;
648 } 648 }
649 #endif /* !HAVE_STRCASESTR */ 649 #endif /* !HAVE_STRCASESTR */
650 650
651 // startswith(str, word)
652 // Returns TRUE if string str starts with word.
653 int startswith(const char *str, const char *word)
654 {
655 if (!strncmp(str, word, strlen(word)))
656 return TRUE;
657 return FALSE;
658 }
659
651 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ 660 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */