|
version 1.10.18.1, 2024/10/26 14:40:36
|
version 1.11.34.1, 2026/07/22 10:39:11
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004 - 2024 | Copyright 2004 - 2026 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 322 str_Dig2Hex2(u_char * __restrict digz, int diglen)
|
Line 322 str_Dig2Hex2(u_char * __restrict digz, int diglen)
|
| } |
} |
| |
|
| return str; |
return str; |
| |
} |
| |
|
| |
/* |
| |
* 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) |
| |
{ |
| |
int ret = 0; |
| |
char *p, *c; |
| |
|
| |
if (!str) |
| |
return -1; |
| |
|
| |
for (p = c = str; *c; c++) |
| |
if (*c != ch) |
| |
*p++ = *c; |
| |
else { |
| |
if (replace) |
| |
*p++ = replace; |
| |
ret++; |
| |
} |
| |
*p = 0; |
| |
|
| |
return ret; |
| } |
} |
| |
|
| /* |
/* |