Last change
on this file since 577 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
557 bytes
|
Rev | Line | |
---|
[444] | 1 | /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. |
---|
| 2 | * |
---|
| 3 | * Permission to use, copy, modify, and distribute this software |
---|
| 4 | * is freely granted, provided that this notice is preserved. |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | #include <_ansi.h> |
---|
| 8 | #include <argz.h> |
---|
| 9 | #include <stddef.h> |
---|
| 10 | #include <sys/types.h> |
---|
| 11 | |
---|
| 12 | void |
---|
| 13 | argz_stringify (char *argz, |
---|
| 14 | size_t argz_len, |
---|
| 15 | int sep) |
---|
| 16 | { |
---|
| 17 | size_t i; |
---|
| 18 | |
---|
| 19 | /* len includes trailing \0, which we don't want to replace. */ |
---|
| 20 | if (argz_len > 1) |
---|
| 21 | for (i = 0; i < argz_len - 1; i++) |
---|
| 22 | { |
---|
| 23 | if (argz[i] == '\0') |
---|
| 24 | argz[i] = sep; |
---|
| 25 | } |
---|
| 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.