#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Location
    Scotland
    Posts
    185
    Rep Power
    12

    Question NEWBIE - Quick Question


    Hi all.

    I have a slight problem.

    I am using the following code to read a line from a text file as a string:

    valueptr = strchr(word, '=');

    this works fine, but...

    what can I use to find the first, and only the first character of this string?

    Thanks.

    J.
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    That would be word[0]

    Also, in the future, please use an appropriate subject title. You can refer to the sticky thread at the top of this forum for more information on how to post a question.

IMN logo majestic logo threadwatch logo seochat tools logo