* grub-core/kern/misc.c (grub_stpcpy): Move from here ...
* include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
This commit is contained in:
parent
8e307a625d
commit
10133b5ff3
3 changed files with 17 additions and 14 deletions
|
@ -103,19 +103,6 @@ grub_strncpy (char *dest, const char *src, int c)
|
|||
return dest;
|
||||
}
|
||||
|
||||
char *
|
||||
grub_stpcpy (char *dest, const char *src)
|
||||
{
|
||||
char *d = dest;
|
||||
const char *s = src;
|
||||
|
||||
do
|
||||
*d++ = *s;
|
||||
while (*s++ != '\0');
|
||||
|
||||
return d - 1;
|
||||
}
|
||||
|
||||
int
|
||||
grub_printf (const char *fmt, ...)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue