Skip to content

g.printf() funtion #33

Description

@Sebenzouz

Hi,
Is it possible to put char content in sentences with g.printf() ? I would like an use like that:

#include <PrintEx.h>
char query1[128];
char message[]="hello";
char autre[]="world";
long long id=0;
GString g(query1);
g.printf("INSERT INTO arduilog.logs (id,subsystem,value) VALUES (%d,%s,%s)",id,message,autre);

I tried with sprintf() function but it doesn't work. Could you send me an example if this thing exist?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions