delorie.com/archives/browse.cgi | search |
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:3022 |
Path: | news-dnh.mv.net!mv!news.sprintlink.net!hookup!news.mathworks.com!tank.news.pipex.net!pipex!dish.news.pipex.net!pipex!mantis!mantis!not-for-mail |
From: | olly AT mantis DOT co DOT uk (Olly Betts) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: GRX20 doesn´t work, although 1.03m1 worked |
Date: | 2 Nov 1995 14:16:28 -0000 |
Organization: | techn-ol-ogy |
Lines: | 16 |
References: | <478hco$12bu AT sat DOT ipp-garching DOT mpg DOT de> |
Nntp-Posting-Host: | sunforest.mantis.co.uk |
To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
In article <478hco$12bu AT sat DOT ipp-garching DOT mpg DOT de>, asc <asc AT ipp-garching DOT mpg DOT de> wrote: > textset=(GrTextOption *) calloc(sizeof(textset)); I've no idea if this is the cause of your problem, but calloc takes two arguments (number of elements and size of each element). If you are making use of calloc's zeroing of the allocated memory, the correct usage is calloc(1,sizeof(textset)) else use malloc(sizeof(textset)) instead. >[...] please help (preferably E-Mail) Mailed and posted. Olly -- cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |