Date: Sun, 18 Oct 2009 18:33:43 -0700 From: Gary Kline <kline@thought.org> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: need C help, passing char buffer[] by-value.... Message-ID: <20091019013337.GA9522@thought.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091019013337.GA9522>