RE: [Info-ingres] abf 3gl function
- From: Gareth Williams <Gareth.Williams@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Nov 2005 16:38:24 -0000
Title: RE: [Info-ingres] abf 3gl function
Excellent Martin,
Exactly what I needed.
Haven't coded in C or ABF for years - It's still all a bit grey around the edges.
Thanks to all who contributed. Much appreciated.
Cheers
Gareth
-----Original Message-----
From: martin.bowes@xxxxxxxxxxxxx [mailto:martin.bowes@xxxxxxxxxxxxx]
Sent: 23 November 2005 15:05
To: Gareth Williams
Cc: info-ingres@xxxxxxxxxxxxxxx
Subject: RE: [Info-ingres] abf 3gl function
Hi Gareth,
C has the strtok function available if you #include <string.h>
Martin Bowes
>
> Thanks for your replies.
> I think I've nailed it.
> One other quick question... .net has a split function eg.
> Dim myString() as string
> Mystring = split(anotherstring,"|")
> This will chop up anotherstring where pipe is the delimiter and places
> them into the array of strings myString. Are there any similar
> functions in C or ingres? Cheers -----Original Message----- From: Roy
> Hann [mailto:specially@xxxxxxxxxxxxxxxxxxxxx] Sent: 23 November 2005
> 08:47 To: info-ingres@xxxxxxxxxxxxxxx Subject: Re: [Info-ingres] abf
> 3gl function "Nick" <Nick@xxxxxxxxxxx> wrote in message
> news:mailman.1132692301.7020.info-ingres@xxxxxxxxxxxxxxx... > Could
> you not do something like this > > char *myfunction(char *mystrvar,
> int maxlen) > { > strcpy(mystrvar, "some string that is no longer than
> maxlen chars"); > > return; > } Even if that worked, it would be a
> leap of faith on the part of the caller. Returning a pointer to a
> static array would be the safe solution. Roy
>
> _______________________________________________
> Info-ingres mailing list
> Info-ingres@xxxxxxxxxxxxxxx
> http://mailman.cariboulake.com/mailman/listinfo.py/info-ingres
>
>
>
> Cymraeg:-
> Mae'rnegeshonyngyfrinachol.Osnadchiyw'rderbynnyddybwriedidynegesareigy
> fer,bydd wchmorgaredigârhoigwybod i'ranfonyddynddi-
> oed.Dylidystyriedunrhywddatganiadauneusylwadauawneiruchodynrhaipersono
> l,acnido angenrhaidynrhaio
> eiddoYmddiriedolaethGIGBroMorgannwg,nacunrhywrangyfansoddolohoninachor
> ffcysyllti edig.
>
> CofiwchfodynymwybodoleibodynbosiblybydddisgwyliYmddiriedolaethGIGBroMo
> rgannw groicyhoeddusrwyddigynnwysunrhywebostneu
> ohebiaethadderbynnir,ynunolagamodau'rDdeddfRhyddidGwybodaeth2000.Igael
> mwyow ybodaethamRyddidGwybodaeth,cofiwchgyfeirio
> atwefanYmddiriedolaethGIGBroMorgannwgarwww.bromor-tr.wales.nhs.uk
>
> English:-
> Thismessageisconfidential.Ifyouarenottheintendedrecipientofthemessaget
> henpleaseno tifythesenderimmediately.
> Anyofthestatementsorcommentsmadeaboveshouldberegardedaspersonalandnotn
> eces sarilythoseofBroMorgannwgNHSTrust,any
> constituentpartorconnectedbody.
>
> Pleasebeawarethat,underthetermsoftheFreedomofInformationAct2000,BroMor
> gannwg NHSTrustmayberequiredtomakepublicthe
> contentofanyemailsorcorrespondencereceived.ForfurtherinformationonFree
> domofInform ation,pleaserefertotheBroMorgannwgNHS
> Trustwebsiteatwww.bromor-tr.wales.nhs.uk.
>
>
_______________________________________________
Info-ingres mailing list
Info-ingres@xxxxxxxxxxxxxxx
http://mailman.cariboulake.com/mailman/listinfo.py/info-ingres
Cymraeg:- Mae'r neges hon yn gyfrinachol.Os nad chi yw'r derbynnydd y bwriedid y neges ar ei gyfer, byddwch mor garedig â rhoi gwybod i'r anfonydd yn ddi-oed. Dylid ystyried un rhywd datganiadau neu sylwadau a wneir uchod yn rhai personol,ac nid o angen rhaid yn rhai o eiddo Ymddiriedolaeth GIG Bro Morgannwg, nac unrhyw ran gyfansoddol ohoni na chorff cysylltiedig. Cofiwch fod yn ymwybodol ei bod yn bosibl y bydd disgwyl i Ymddiriedolaeth GIG Bro Morgannwg roi cyhoeddusrwydd i gynnwys unrhyw ebost neu ohebiaeth a dderbynnir, yn unol ag amodau'r Ddeddf Rhyddid Gwybodaeth 2000. I gael mwy o wybodaeth am Ryddid Gwybodaeth, cofiwch gyfeirio at wefan Ymddiriedolaeth GIG Bro Morgannwg ar www.bromor-tr.wales.nhs.uk English:- This message is confidential. If you are not the intended recipient of the message then please notify the sender immediately. Any of the statements or comments made above should be regarded as personal and not necessarily those of Bro Morgannwg NHS Trust, any constituent part or connected body. Please be aware that, under the terms of the Freedom of Information Act 2000, Bro Morgannwg NHS Trust may be required to make public the content of any emails or correspondence received. For further information on Freedom of Information, please refer to the Bro Morgannwg NHS Trust website at www.bromor-tr.wales.nhs.uk. |
- Prev by Date: [Info-ingres] Ingres/Replicator Stress Test
- Next by Date: [Info-ingres] Re: Ingres/Replicator Stress Test
- Previous by thread: RE: [Info-ingres] abf 3gl function
- Next by thread: [Info-ingres] Ingres/Replicator Stress Test
- Index(es):