// --------------- // // -- str_ext.h -- // // --------------- // // string extensions // Copyright (c) 2014 Lionel Lacassagne, All Rights Reserved // LRI, Univ Paris-Sud XI, CNRS #ifndef __STR_EXT_H__ #define __STR_EXT_H__ #ifdef __cplusplus #ifdef PRAGMA_VERBOSE #pragma message ("C++") #endif extern "C" { #endif // remove file extension, dst must be allocated. string is null-terminated // toto.txt => toto // toto => toto void str_remove_ext(const char* src, char* dst); int str_len(char *str); void str_toupper(char *str); void test_str_remove_ext(void); #ifdef __cplusplus } #endif #endif // __STR_EXT_H__