Mercurial > mplayer.hg
view osdep/strlcat.c @ 21932:c11cbff65f18
r21727: Must refer to option name instead of internal variable
r21758: Subtitle formats are listed in subreader.h, not libmpdemux/demuxer.h.
r21848: clarify a few things about the interaction between *cmp and mbd options
r21865: Audio track switching works with DVDs as well.
r21882: sync to x264 r607 (update description of threads)
author | kraymer |
---|---|
date | Wed, 17 Jan 2007 14:04:30 +0000 |
parents | 8d9e6b4fbf4d |
children | 9fb716ab06a3 |
line wrap: on
line source
/* strlcat implementation for systems that do not have it in libc * Time-stamp: <2004-03-14 njk> * (C) 2003-2004 Nicholas J. Kain <njk@aerifal.cx> */ #include "config.h" unsigned int strlcat (char *dest, const char *src, unsigned int size) { register char *d = dest; for (; size > 0 && *d != '\0'; size--, d++); return (d - dest) + strlcpy(d, src, size); }