Re: XForms: what function needed?

David Smead (smead@amplepower.com)
Sat, 2 Jan 1999 08:40:34 -0800 (PST)

# To subscribers of the xforms list from David Smead <smead@amplepower.com> :

Greetings, and good wished for the new year.

On Sat, 2 Jan 1999, Martin Doll, Ph.D. wrote:

> # To subscribers of the xforms list from "Martin Doll, Ph.D." <mkhd@into.ch> :
>
> Hi all and a happy new year!!!
>
>
> Working with XForms I am still at the stage of debugging my actual program.
> I would kindly like to ask a question concerning C (hope you don't mind):
>
> If I want to check an input string for *not* containing characters like
> quotes, pipes and other unix symbols, how should that be done? With
> "norma" chars I can easily do that.
>
> Trying something like *pointer != ''' (or only ') I get missing closing

You have to backslash such characters so that they mean the actual
character not their meta meaning. Try

(*cp != "\"", && *cp != "\t", && *cp != "\n") for example.

> quotes. Another idea was to check for a function that scans the string
> and returns the ASCII numbers of the respective char the pointer
> currently points to; but....what's the name of such a function. - I was
> looking at atoi/strtol etc...

int strlen(char *string);
>
> Maybe someone who can knock out my several hours consuming problem in a
> split second with the right name/code fragment?
>
>
> Thank you very much (won't ask to much pure C here, sorry again)
>
>
> mkhd
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuf2.usuhs.mil or see
> http://bob.usuf2.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://bragg.phys.uwm.edu/xforms
> List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/
>

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/