]> diplodocus.org Git - nmh/blobdiff - sbr/r1bindex.c
Replaced use of snprintf() with memcpy()/memmove().
[nmh] / sbr / r1bindex.c
index 56f8c6a18d8072fe12722eca445cffd33ed5cadd..fb4595c0cd66f755a1af8ec547e887f294a3b55d 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * r1bindex.c -- Given a string and a character, return a pointer
+/* r1bindex.c -- Given a string and a character, return a pointer
  *            -- to the right of the rightmost occurrence of the
  *            -- character.  If the character doesn't occur, the
  *            -- pointer will be at the beginning of the string.
@@ -9,8 +8,10 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
+#include "r1bindex.h"
 
+/* Does not return NULL. */
 char *
 r1bindex(char *str, int chr)
 {