--- libelwix/inc/elwix/astr.h 2024/12/05 12:33:49 1.9.4.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.9.4.1 2024/12/05 12:33:49 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 @@ -90,6 +90,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 *