mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 05:29:58 +00:00
198b02f7dd
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
22 lines
366 B
C
22 lines
366 B
C
/* vi: set sw=4 ts=4: */
|
|
/*
|
|
* Utility routines.
|
|
*
|
|
* Copyright (C) 2008 Denys Vlasenko
|
|
*
|
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
|
*/
|
|
|
|
//kbuild:lib-y += nuke_str.o
|
|
|
|
#include "libbb.h"
|
|
|
|
void FAST_FUNC nuke_str(char *str)
|
|
{
|
|
if (str) {
|
|
while (*str)
|
|
*str++ = 0;
|
|
/* or: memset(str, 0, strlen(str)); - not as small as above */
|
|
}
|
|
}
|