ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/05/16/14:08:41

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Wed, 16 May 2007 20:06:57 +0200
From: Michelle Konzack <dos4michelle AT freenet DOT de>
To: djgpp AT delorie DOT com
Subject: Re: How to count the occurance of a character in a string?
Message-ID: <20070516180657.GE20179@freenet.de>
References: <20070511181210 DOT GT3209 AT freenet DOT de> <f22p42$bu7$1 AT aioe DOT org> <20070512111553 DOT GO1881 AT freenet DOT de> <f24kg3$k88$1 AT aioe DOT org> <20070515164057 DOT GC1818 AT freenet DOT de> <f2f79a$1i6$1 AT aioe DOT org> <20070516160358 DOT GA20179 AT freenet DOT de> <464B3526 DOT 2080909 AT schluessler DOT org>
Mime-Version: 1.0
In-Reply-To: <464B3526.2080909@schluessler.org>
X-Message-Flag: Improper configuration of Outlook is a breeding ground for viruses. Please take care your Client is configured correctly. Greetings Michelle.
X-Disclaimer-DE: Eine weitere Verwendung oder die Veroeffentlichung dieser Mail oder dieser Mailadresse ist nur mit der Einwilligung des Autors gestattet.
Organisation: Michelle's Selbstgebrautes
X-Operating-System: Linux tp570.private 2.4.27-tp570
X-Uptime: 20:04:58 up 3:24, 5 users, load average: 0.39, 0.72, 0.84
X-Homepage: http://www.dos.tamay-dogan.homelinux.net/
User-Agent: Mutt/1.5.9i
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--G6nVm6DDWH/FONJq
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Am 2007-05-16 18:45:26, schrieb Timo Schl=FC=DFler:
> Do you only need strdup() or strdupa() ?? Why don't you write your own?
> Like:
> char *strdup(const char *s)
> {
>   size_t len =3D strlen (s) + 1;
>   char *result =3D (char*) malloc (len);
>   if (result =3D=3D (char*) 0)
>     return (char*) 0;
>   return (char*) memcpy (result, s, len);
> }
>=20
> (This is the code for the real strdup() function.)
>=20
> All the best and sorry for writting if this wasn't your real problem

Maybe you are right.  I should copy the original function into my code.
I have only found two functions, which are not available under DJGPP.

Thanks, Greetings and nice Day
    Michelle Konzack


--=20
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

--G6nVm6DDWH/FONJq
Content-Type: application/pgp-signature; name="signature.pgp"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGS0hBXnHp6ejAnVoRAmQEAJ4uc9FtdYs6J3Y+YBW6sFVO++7X3gCggTn2
B26tdpH6n31lFT1meMsLiHY=
=zikQ
-----END PGP SIGNATURE-----

--G6nVm6DDWH/FONJq--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019