Skip to content

g.printf() funtion #33

@Sebenzouz

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?

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