View Single Post

  #1 (permalink)  
Old 03-17-2008, 01:56 PM
lexxzy lexxzy is offline
Junior Member
 
Join Date: Mar 2008
Posts: 1
lexxzy is on a distinguished road
stripos function

hello,
I have a problem.
I will create a C function (strPos) that will return position of first occurence of a case-insentitive string found in the stackOfStr string. The target may be a string of one or more characters. If target string is not found, it will return -1. The offset means the starting location of the search.

The function strPos() are not allowed to use any C library function calls.


the syntax of the strPos function is this:
int strPos(char *stackOfStr, char* target, int offset)

Does anyone has an idea about this?
Please I need a serious and exact answer for this.
Thank you in advance.
Reply With Quote