]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_c/Maasha/src/inc/strings.h
added bed stuff to c code
[biopieces.git] / code_c / Maasha / src / inc / strings.h
index fa1468654103927d9aa4fbcbb0f145eb69da1416..c757e57eb4cb58e4436e99e1783f491f67f5d2b9 100644 (file)
@@ -1,3 +1,5 @@
+/* Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved */
+
 /* Remove the last char from a string. Returns the length of the chopped string.*/
 size_t chop( char *string );
 
@@ -5,6 +7,9 @@ size_t chop( char *string );
 /* Returns the length of the chomped string or -1 is no newline was found. */
 size_t chomp( char *string );
 
+/* Returns the total number of a given char in a given string. */
+size_t strchr_total( const char *string, const char c );
+
 /* Locate a substr in a str starting at pos allowing for a given number of mismatches. */
 /* Returns position of match begin or -1 if not found. */
 size_t match_substr( size_t pos, char *str, size_t str_len, char *substr, size_t substr_len, size_t mismatch );