OSDN Git Service

* Add prototype for strlcpy
authorPhilip Gladstone <philipjsg@users.sourceforge.net>
Fri, 10 May 2002 02:16:29 +0000 (02:16 +0000)
committerPhilip Gladstone <philipjsg@users.sourceforge.net>
Fri, 10 May 2002 02:16:29 +0000 (02:16 +0000)
Originally committed as revision 480 to svn://svn.ffmpeg.org/ffmpeg/trunk

libav/avformat.h

index e17c7a5..10de1f8 100644 (file)
@@ -178,6 +178,8 @@ AVFormat *guess_format(const char *short_name, const char *filename, const char
 
 int strstart(const char *str, const char *val, const char **ptr);
 void nstrcpy(char *buf, int buf_size, const char *str);
+/* This does what strncpy ought to do. */
+void strlcpy(char *dst, const char *src, int dst_size);
 int match_ext(const char *filename, const char *extensions);
 
 void register_all(void);