source: soft/giet_vm/applications/rosenfeld/include/str_ext.h @ 808

Last change on this file since 808 was 772, checked in by meunier, 9 years ago
  • Ajout de l'application rosenfeld
  • Changement du nom du flag O_CREATE en O_CREAT
File size: 634 bytes
Line 
1// --------------- //
2// -- str_ext.h -- //
3// --------------- //
4
5// string extensions
6// Copyright (c) 2014 Lionel Lacassagne, All Rights Reserved
7// LRI, Univ Paris-Sud XI, CNRS
8
9#ifndef __STR_EXT_H__
10#define __STR_EXT_H__
11
12#ifdef __cplusplus
13#ifdef PRAGMA_VERBOSE
14#pragma message ("C++")
15#endif
16extern "C" {
17#endif
18
19// remove file extension, dst must be allocated. string is null-terminated
20// toto.txt => toto
21// toto     => toto
22void str_remove_ext(const char* src, char* dst);
23
24int str_len(char *str);
25
26void str_toupper(char *str);
27   
28void test_str_remove_ext(void);
29   
30#ifdef __cplusplus
31}
32#endif
33
34#endif // __STR_EXT_H__
Note: See TracBrowser for help on using the repository browser.