| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Date: | Wed, 16 May 2007 18:03:59 +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: | <20070516160358.GA20179@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> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <f2f79a$1i6$1@aioe.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: | 18:00:19 up 1:19, 5 users, load average: 1.08, 1.02, 1.11 |
| 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 |
--qMm9M+Fa2AknHoGS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hello Cesar,
Am 2007-05-16 12:16:57, schrieb Cesar Rabak:
> OK Michelle,
>=20
> I think I'm _almost_ understood what you need (or perhaps not ;-) let's s=
ee:
>=20
> It seems obvious at this time that just counting the number of dots in=20
> the strings is not what you need/want, as this is trivial in C.
>=20
> So would you like to build a function in C that receiving as argument a=
=20
> string like:
>=20
> ~/INBOX/ returns ~/INBOX/
> /INBOX.ML_devel/ returns .ML_devel/
> /INBOX.ML_devel.djgpp/ returns .djgpp/
>=20
> Is it there near of your needs?
Nearly right, but I need the depth of it (e.g.: .djgpp =3D 2) and the name.
If I use "#define _GNU_SOURCE" I can use under Linux glibc strdupa()
and strtok().
But since strdupa() does not exist under DJGPP, I have some problems
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)
--qMm9M+Fa2AknHoGS
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)
iD8DBQFGSytuXnHp6ejAnVoRAuuCAJ458hYPXHTMoeYPkRmOfBtIsVzqKACeM1yd
6NyGFDzksGrAKk5V9iMaPhU=
=KLJb
-----END PGP SIGNATURE-----
--qMm9M+Fa2AknHoGS--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |