logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

libmawk_append_input - append a string to an input buffer

Description

       The  libmawk_append_input() and libmawk_append_ninput() functions allow the application to fill the input
       buffer of a libmawk context.  No record separator is appended, only the bytes  donated  by  input_str  or
       input, thus it is possible to append partial records. Appending to the input doesn't have the side effect
       of  any  script  being  run.  There  may  be  multiple  libmawk_append_input()  calls  before  a  call to
       libmawk_run_main(). The latter all is used to let the script process the input buffer.

       The only difference between the two calls are the input format:  libmawk_append_input()  expects  a  nul-
       terminated string, whereas libmawk_append_ninput() takes an arbitrary binary data and its length.

       Argument    m    is    a    libmawk    context    previously    returned   by   libmawk_initialize()   or
       libmawk_initialize_stage3().

Name

       libmawk_append_input - append a string to an input buffer

See Also

libmawk_initialize_stage(3libmawk), libmawk_initialize(3libmawk), libmawk_run_main(3libmawk).

libmawk                                            2009-08-10                     LIBMAWK_APPEND_INPUT(3libmawk)

Synopsis

#include<libmawk.h>voidlibmawk_append_input(mawk_state_t*m,constchar*input_str);voidlibmawk_append_ninput(mawk_state_t*m,constchar*input,intlen);

See Also