PR_fprintf(fd, "%s,%lld\n", entry->GetName(), entry->GetDate());
const char* extraData = entry->GetOptionalData(); const char *fmt; if (extraData) fmt = "%s,%lld,%s\n"; else fmt = "%s,%lld\n"; PR_fprintf(fd, fmt, entry->GetName(), entry->GetDate(), extraData);
AutoRegEntryWriter(void* aElement, void *aData){    PRFileDesc* fd = (PRFileDesc*) aData;    AutoRegEntry* entry = (AutoRegEntry*) aElement;     //name,last_modification_date        PR_fprintf(fd,               "%s,%lld\n",               entry->GetName(),               entry->GetDate());    return PR_TRUE;}