Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

I need help!!

vjekomanvjekoman Member Posts: 9
Is there a function like Instr in Basic or Pos in Pascal? For C-only programmers: Is there a function that returns position of a subtring in a string? String and it's substring are supposed to be the function's parameters.

Comments

  • JonathanJonathan Member Posts: 2,914
    : Is there a function like Instr in Basic or Pos in Pascal? For C-only programmers: Is there a function that returns position of a subtring in a string? String and it's substring are supposed to be the function's parameters.
    :
    I think the C function strstr in string.h is the closest you'll get to that. Look it up in the language docs or Google for the full scoop.

    Hope this helps,

    Jonathan


    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.