hi sergei =D work done :D
i put a last diff with tables used by the query
i used a char[] since i don't know how to use string or others function in c :)

now query cache information is very very nice and beautiful =D
i'm putting code here too

it's mariadb 5.5.31