Re: regex in C oder RPG



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.

Does the person who posted this code say if it is tested and acutally
works? Can you run the sample as is?

.



Relevant Pages

  • Re: regex in C oder RPG
    ... > I am not thrilled about the way the sample code passes the regex_t data ... but use the %addr of the data strucure during the actual call. ... > contents of the data structure into the pointer. ... I run the sample with the string/pattern ...
    (comp.sys.ibm.as400.misc)
  • Re: [PATCH] [0/9] Use 64bit x86 machine check code for 32bit too
    ... warning: passing argument 2 of ‘strict_strtoull’ makes integer from pointer without a cast ...
    (Linux-Kernel)
  • Re: Critical section shared betwen dll and main program
    ... I am discussing the case of dynamic DLL ... loading and passing PCRITICAL_SECTION between old version of DLL ... and an executable which was build in newer environment. ... without passing a pointer to the kernel32.dll? ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [opensuse] Promise SATA300-4TX kernel Module Fails to Build?
    ... passing argument 2 of ‘writeb’ makes pointer from integer without a cast ... missing whitespace after the macro name ...
    (SuSE)
  • TRICK: Unique IDing
    ... Sometimes it's hard to get straight when passing or storing or returning an ... pointer to a copy of the target instance. ... class MyClass ... ID) and compare it against the suspect. ...
    (microsoft.public.dotnet.languages.vc)