Re: Conversion functions.

2007-09-07 Thread Magnus Myrefors
On Fri, 7 Sep 2007 16:16:35 +0200 Magnus Myrefors <[EMAIL PROTECTED]> wrote: By the way I have found out that I used a way of reading lines from the input-file which can cause some problem. I read in a book that fgets(string, sizeof(string), input) should read one line up to sizeof(string)

Re: Conversion functions.

2007-09-07 Thread Magnus Myrefors
t;[EMAIL PROTECTED]> wrote: > On Fri, Sep 07, 2007 at 01:45:09AM +0200, Magnus Myrefors wrote: > > > > yeti>> I have tested your minimal testprogram with the whole > > test-file. Unfortunately the program doesn't print anything to > > stdout. It doesn't

Re: Conversion functions.

2007-09-06 Thread Magnus Myrefors
yeti>> I have tested your minimal testprogram with the whole test-file. Unfortunately the program doesn't print anything to stdout. It doesn't seem to be any data stored in the GSList or in the datastructure, Data *data. (I tried to print a field every time a new line was about to be read in the w

Re: Conversion functions.

2007-09-05 Thread Magnus Myrefors
+0200 David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > On Tue, Sep 04, 2007 at 11:55:58PM +0200, Magnus Myrefors wrote: > > > > I tried with strtod() but it only worked with strings with no > > decimal-point, otherwise the resulting double was truncated. > > ...

Re: Conversion functions.

2007-09-04 Thread Magnus Myrefors
vid Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > On Tue, Sep 04, 2007 at 04:18:23PM +0200, Magnus Myrefors wrote: > > > > I tested my code with valgrind and I got some error-messages > > that derived from my own code.I changed the code and then > > the error-messages dis

Re: Conversion functions.

2007-09-04 Thread Magnus Myrefors
I tested my code with valgrind and I got some error-messages that derived from my own code.I changed the code and then the error-messages disapperad. I still get wrong values that seem to occur randomly though... Below is the output from valgrind. It is the end of the error-messages that were

Re: Conversion functions.

2007-09-03 Thread Magnus Myrefors
wrote: > On Mon, Sep 03, 2007 at 08:46:51PM +0200, Magnus Myrefors wrote: > > I am currently trying to use the glib-functions > > g_ascii_strtod(x,y) and g_ascii_strtoll(x,y) to convert values from > > a text-file. It works fine most of the time but occasionally the > >

Conversion functions.

2007-09-03 Thread Magnus Myrefors
Hi, I am currently trying to use the glib-functions g_ascii_strtod(x,y) and g_ascii_strtoll(x,y) to convert values from a text-file. It works fine most of the time but occasionally the converted values are absolutely wrong or just a bit wrong. I am using the glib libraries (libglib2.0-dev

Scrollable windows (page-size).

2006-04-21 Thread Magnus Myrefors
Hi, I wonder if there is if there is a gtk-signal emitted when the widget inside a scrollable window is equal to the "page-size" of the scrollable window. I also wonder if you somehow can get the "page-size" ? /Magnus ___ gtk-app-devel-list mailing list