Revision dfefcc0f
Von martin vor mehr als 14 Jahren hinzugefügt
test/gwentest.c | ||
---|---|---|
assert(ti1);
|
||
|
||
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
|
||
GWEN_Date_toStringWithTemplate(ti1, "w*, DD.MM.YYYY", dbuf);
|
||
GWEN_Date_toStringWithTemplate(ti1, "w*, DDDD.MM.YYYY", dbuf);
|
||
DBG_NOTICE(0, "Current date: %s", GWEN_Buffer_GetStart(dbuf));
|
||
|
||
GWEN_Buffer_Reset(dbuf);
|
||
GWEN_Date_toStringWithTemplate(ti1, "www, DD.M*.YYYY (W)", dbuf);
|
||
DBG_NOTICE(0, "or like this: %s", GWEN_Buffer_GetStart(dbuf));
|
||
|
||
GWEN_Buffer_Reset(dbuf);
|
||
GWEN_Date_toStringWithTemplate(ti1, "w*, D.M.YYYY (W)", dbuf);
|
||
DBG_NOTICE(0, "or like this: %s", GWEN_Buffer_GetStart(dbuf));
|
||
|
||
return 0;
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Fixed a segfault on bad template strings.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@2067 70169cfe-8b10-0410-8925-dcb4b91034d8