Re: regex in C oder RPG
- From: Franz_Rust@xxxxxxxx
- Date: 11 Jan 2006 23:43:57 -0800
Lou schrieb:
> I am not thrilled about the way the sample code passes the regex_t data
> structure. They define the parameter it is passed in as passing by
> value, but use the %addr of the data strucure during the actual call. I
> would define a pointer to be passed by value and insert/extract the
> contents of the data structure into the pointer.
>
> I am not saying this is a problem or the cause of your problem. I have
> just had poor luck passing parameters by value using the %addr
> function.
>
I debug the rpg-program an see the data in regex_t is changed after the
first procedure regcomp is finished. So I think, the pointing ist
correct
> Does the person who posted this code say if it is tested and acutally
> works?
I have no contact to the person
>Can you run the sample as is?
I compiled without any erros. I run the sample with the string/pattern
of the example and other string/pattern-combinations. Everytime I got
the message: regexec() failed
Franz
.
- Follow-Ups:
- Re: regex in C oder RPG
- From: Lou
- Re: regex in C oder RPG
- References:
- regex in C oder RPG
- From: Franz_Rust
- Re: regex in C oder RPG
- From: Lou
- regex in C oder RPG
- Prev by Date: Re: Error compiling a C code on AS/400
- Next by Date: Re: Domino on AS400
- Previous by thread: Re: regex in C oder RPG
- Next by thread: Re: regex in C oder RPG
- Index(es):
Relevant Pages
|