Mercurial > garten
view growth.c @ 14:bbc214c6fa6f
fixed the result of an unchecked rename ...
author | meillo@marmaro.de |
---|---|
date | Wed, 23 Jul 2008 16:39:06 +0200 |
parents | 8db6497d6065 |
children | 5e6c9260913a |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include "db.h" #include "game.h" void grow_plants() { /* get weather and last environments to calculate the next one */ sprintf(query, "update field \ set age = age+1, size = size+1 "); stmt = db_query(query); if (!db_update(query)) { printf("E: update failed ++ %s\n", sqlite3_errmsg(db)); } sqlite3_finalize(stmt); } void growth(void) { grow_plants(); }