--- libelwix/inc/elwix/astr.h 2024/10/26 14:40:36 1.8.48.1 +++ libelwix/inc/elwix/astr.h 2026/07/27 21:11:07 1.11 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: astr.h,v 1.8.48.1 2024/10/26 14:40:36 misho Exp $ +* $Id: astr.h,v 1.11 2026/07/27 21:11:07 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2024 +Copyright 2004 - 2026 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -46,6 +46,9 @@ SUCH DAMAGE. #ifndef __ASTR_H #define __ASTR_H +#ifdef __cplusplus +extern "C" { +#endif /* * str_FreeNullTerm() - Free dynamic allocated null terminated array with strings @@ -88,6 +91,15 @@ char **str_CopyEnv(const char **oldenv); ait_val_t *str_Ast(const char *csString); /* + * str_makeup() - Makeup the string, delete character or replace it + * + * @str = String for makeup + * @ch = Find character + * @replace = Replace found character with this one if it !=0 + * return: how many replaces are done or -1 error + */ +int str_makeup(char * __restrict str, char ch, char replace); +/* * str_LTrim() - Remove left whitespaces from text string * * @psLine = Text string @@ -190,5 +202,8 @@ int str_getString2(char * __restrict data, int dlen, c */ int str_find2replace(const char *data, const char *find, const char *replace, char **str, int *mlen); +#ifdef __cplusplus +} +#endif #endif