From 8a5df2650895c7d4bbad4e4b2aeacad28f2d550f Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Fri, 26 Oct 2012 18:59:31 +0000 Subject: [PATCH] Incluindo buffer para teste da função de rpq --- src/tests/rpqtest.c | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/src/tests/rpqtest.c b/src/tests/rpqtest.c index d024ff2..a1d4f9d 100644 --- a/src/tests/rpqtest.c +++ b/src/tests/rpqtest.c @@ -47,11 +47,14 @@ static int dump_buffer(H3270 *hSession, unsigned const char *buf, int len) int main(int numpar, char *param[]) { + unsigned char buffer[] = { 0xf3, 0x00, 0x05, 0x01, 0xff, 0x02 }; + H3270 *hSession = lib3270_session_new(""); hSession->write = dump_buffer; lib3270_set_toggle(hSession,LIB3270_TOGGLE_DS_TRACE,1); + write_structured_field(hSession, buffer, 6); lib3270_session_free(hSession); return 0; -- libgit2 0.21.2