User talk:Ugleh Ulrik
I don't know what came over me but I totally rewrote Stristr. It makes a good example but it shouldn't be used as a user function. The programmer already knows at compile time if the string is going to be empty and if they want the before or after value. In most cases you won't be working with null strings and you will want the one string or the other but never will it change during execution. This means if you created a specialized function for each case, each function would be about 3 lines of code. It's better IMHO to inline three lines of code and cement understanding then to create a function to do it for you.