reading from a string

Robert J. Nield (
Sun, 16 Feb 1997 19:17:01 +0000 (GMT)

To subscribers of the xforms list from "Robert J. Nield" <> :


I am trying to get the input back from a field in a normal type input
field. The problem is that i dont quite understand the documentation about

[const] char *fl_get_input(FL_OBJECT *obj)

I presume this returns a pointer to the first element in the string.
Therefore successive incrementation should produce the next in the string.
But I get the value of the next letter in the alphabet. I have tried
several different ways but all failed.
I would be very grateful of any helpful suggestions about this.

Code fragment below - in callback file.
char *plain;
char store[100];
int x=0;

void plaintext_cb(FL_OBJECT *ob, long data)
*plain = *fl_get_input(ob);
plain++; // I am sure I have to reference the address here.

Any help would be gratefully received as I am quite proporly stuck.


~ Robert J.Nield ~
~ -------------- ~
~ Telephone / answer machine: +44(0)131 449-8323 ~
~ Home page at ~

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: