/* * Copyright (c) 2001 by Cliff Green. All rights reserved. Individual files * may be covered by other copyrights (as noted in the file itself). * * Redistribution and use in source and binary forms are permitted * provided that this entire copyright notice is duplicated in all such * copies. * * This software is provided "as is" and without any expressed or implied * warranties, including, without limitation, the implied warranties of * merchantibility and fitness for any particular purpose. */ /* * Copyright note - Bob Jarvis wrote the original version and my standard * copyright notice above only pertains to my modified version of his * function. */ /* //---------------------------------------------------------------------- // Source file: soundex.h // Written by: Bob Jarvis // Compiler: Metrowerks CodeWarrior Pro 6, g++ 3.0.4 // History: // Modified: 1/14/1999 // By: Cliff Green // Comments: Modified only slightly from Bob's original - the input // string is now 'dup'ed to protect it from side effects (e.g. // changing 'PH' to 'FA'). The input string is also now char const*. //---------------------------------------------------------------------- // This comment header supports documentation tools such as Doc++ and // Doxygen: http://www.doxygen.org/ //---------------------------------------------------------------------- */ /** * Provides a simple Soundex algorithm, coded in C. * * The output string should be a char array, declared as MAXSDX size. * A null pointer is returned if the function fails. */ #ifndef SOUNDEX_H #define SOUNDEX_H char * soundex(char const * inputstr, char * outputstr); #define MAXSDX 7 #endif /* SOUNDEX_H */