Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2136 | - | 1 | /***************************************************************************** |
2 | * Copyright (C) 2013 Oliver Gemesi * |
||
3 | * * |
||
4 | * This program is free software; you can redistribute it and/or modify * |
||
5 | * it under the terms of the GNU General Public License as published by * |
||
6 | * the Free Software Foundation; either version 2 of the License. * |
||
7 | * * |
||
8 | * This program is distributed in the hope that it will be useful, * |
||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||
11 | * GNU General Public License for more details. * |
||
12 | * * |
||
13 | * You should have received a copy of the GNU General Public License * |
||
14 | * along with this program; if not, write to the * |
||
15 | * Free Software Foundation, Inc., * |
||
16 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||
17 | *****************************************************************************/ |
||
18 | |||
19 | //############################################################################ |
||
20 | //# HISTORY xutils.h |
||
21 | //# |
||
22 | //# 12.04.2014 OG |
||
23 | //# - chg: strncpyat(), strncpyat_P(), _strncpyat() erweitert um Parameter 'sepcharcount' |
||
24 | //# |
||
25 | //# 08.04.2014 OG |
||
26 | //# - add: strncpyat(), strncpyat_P() |
||
27 | //# |
||
28 | //# 28.02.2014 OG |
||
29 | //# - add: buffered_sprintf(), buffered_sprintf_P() |
||
30 | //# |
||
31 | //# 24.06.2013 OG |
||
32 | //# - add: strrtrim() |
||
33 | //# |
||
34 | //# 04.05.2013 OG |
||
35 | //# - chg: umbenannt zu xutils.h |
||
36 | //# |
||
37 | //# 03.05.2013 OG |
||
38 | //# - add: UTCdatetime2local() |
||
39 | //# |
||
40 | //# 28.04.2013 OG - NEU |
||
41 | //############################################################################ |
||
42 | |||
43 | #ifndef _XUTILS_H |
||
44 | #define _XUTILS_H |
||
45 | |||
46 | #include <stdarg.h> |
||
47 | |||
48 | |||
49 | void _xvsnprintf( uint8_t useprogmem, char *buffer, uint8_t n, const char *format, va_list ap ); |
||
50 | void xsnprintf( char *buffer, uint8_t n, const char *format, ... ); |
||
51 | void xsnprintf_P( char *buffer, uint8_t n, const char *format, ... ); |
||
52 | |||
53 | char *buffered_sprintf( const char *format, ... ); |
||
54 | char *buffered_sprintf_P( const char *format, ... ); |
||
55 | |||
56 | void strncpyfill( char *dst, const char *src, size_t size); |
||
57 | void strrtrim( char *dst); |
||
58 | void strncpyat( char *dst, const char *src, size_t size, const char sepchar, uint8_t sepcharcount); |
||
59 | void strncpyat_P( char *dst, const char *src, size_t size, const char sepchar, uint8_t sepcharcount); |
||
60 | |||
61 | |||
62 | void UTCdatetime2local( PKTdatetime_t *dtdst, PKTdatetime_t *dtsrc ); |
||
63 | |||
64 | #endif |