X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmbsstr.c;h=35fd02b544f4f1aae6e59a691e46372974d9f4a9;hb=b314ca18dc36e59297f66b2508fd58535a1cd724;hp=48837805b83b98a78d0eb7336995a42452ea9ce7;hpb=7855e1e3a12ea5e158d51b9ab7f38006ac5fc028;p=gnulib.git diff --git a/lib/mbsstr.c b/lib/mbsstr.c index 48837805b..35fd02b54 100644 --- a/lib/mbsstr.c +++ b/lib/mbsstr.c @@ -1,5 +1,5 @@ /* Searching in a string. - Copyright (C) 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2005-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2005. This program is free software: you can redistribute it and/or modify @@ -35,7 +35,9 @@ #if HAVE_MBRTOWC /* Knuth-Morris-Pratt algorithm. See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm - Return a boolean indicating success. */ + Return a boolean indicating success: + Return true and set *RESULTP if the search was completed. + Return false if it was aborted because not enough memory was available. */ static bool knuth_morris_pratt_multibyte (const char *haystack, const char *needle, const char **resultp)