need C help, passing char buffer[] by-value....

Gary Kline kline at thought.org
Mon Oct 19 01:33:49 UTC 2009


Guys,

maybe this can't be done reading in a file with fgets(buffer[128], fp),
then calling skiptags(), conditionally, to while () past ',' and '>'.

I know I need to calll skipTags with its address, skipTags(&buffer);, but then how to i
handle the variable "s" in skipTags?  Anybody?




// redo, skip TAGS
skipTags((char *)&s)
{
        if (*s == '<')
        {
                while (*s != '>')
                {
                        s++;
                }
                s++;
        }
}


-- 
 Gary Kline  kline at thought.org  http://www.thought.org  Public Service Unix
        http://jottings.thought.org   http://transfinite.thought.org
    The 7.31a release of Jottings: http://jottings.thought.org/index.php



More information about the freebsd-questions mailing list