Last change
on this file since 3879 was 3621, checked in by Bruno Cornec, 8 years ago |
New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.
|
-
Property svn:eol-style
set to
native
|
File size:
366 bytes
|
Line | |
---|
1 | /* vi: set sw=4 ts=4: */
|
---|
2 | /*
|
---|
3 | * Utility routines.
|
---|
4 | *
|
---|
5 | * Copyright (C) 2008 Denys Vlasenko
|
---|
6 | *
|
---|
7 | * Licensed under GPLv2, see file LICENSE in this source tree.
|
---|
8 | */
|
---|
9 |
|
---|
10 | //kbuild:lib-y += nuke_str.o
|
---|
11 |
|
---|
12 | #include "libbb.h"
|
---|
13 |
|
---|
14 | void FAST_FUNC nuke_str(char *str)
|
---|
15 | {
|
---|
16 | if (str) {
|
---|
17 | while (*str)
|
---|
18 | *str++ = 0;
|
---|
19 | /* or: memset(str, 0, strlen(str)); - not as small as above */
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.