Merge pull request #207 from svost/void-return
[novacoin.git] / src / strlcpy.h
index dc0560b..2cc786e 100644 (file)
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
+#ifndef BITCOIN_STRLCPY_H
+#define BITCOIN_STRLCPY_H
+
+#include <stdlib.h>
+#include <string.h>
 
 /*
  * Copy src to string dst of size siz.  At most siz-1 characters
@@ -82,3 +87,4 @@ inline size_t strlcat(char *dst, const char *src, size_t siz)
 
     return(dlen + (s - src)); /* count does not include NUL */
 }
+#endif