if (strlen(buf) < flen) for (j = 0; j < flen-strlen(buf); j++) fprintf(myIpfixPrinter->stream, " ");
if (strlen(buf) < flen) { for (j = 0; j < flen-strlen(buf); j++) { fprintf(myIpfixPrinter->stream, " "); } }
int printOptionsRecord(void* ipfixPrinter_, SourceID sourceID, OptionsTemplateInfo* optionsTemplateInfo, uint16_t length, FieldData* data) {        int i;        char buf[40];        IpfixPrinter* myIpfixPrinter = (IpfixPrinter*)ipfixPrinter_;        if (myIpfixPrinter->lastTemplate != optionsTemplateInfo) {                printOptionsTemplate(myIpfixPrinter, sourceID, optionsTemplateInfo);	        }        for (i = 0; i < optionsTemplateInfo->scopeCount; i++) {                if (i > 0) fprintf(myIpfixPrinter->stream, "|");                FieldType ftype = optionsTemplateInfo->scopeInfo[i].type;                FieldData* fdata = data + optionsTemplateInfo->scopeInfo[i].offset;                int flen = fieldTypeToStringLength(ftype);                if (fieldToString(ftype, fdata, buf, 40) == -1) {                        fprintf(myIpfixPrinter->stream, "Error converting field");                        continue;		        }                int j;                if (strlen(buf) < flen) for (j = 0; j < flen-strlen(buf); j++) fprintf(myIpfixPrinter->stream, " ");                fprintf(myIpfixPrinter->stream, "%s", buf);	        }        fprintf(myIpfixPrinter->stream, "||");        for (i = 0; i < optionsTemplateInfo->fieldCount; i++) {                if (i > 0) fprintf(myIpfixPrinter->stream, "|");                FieldType ftype = optionsTemplateInfo->fieldInfo[i].type;                FieldData* fdata = data + optionsTemplateInfo->fieldInfo[i].offset;                int flen = fieldTypeToStringLength(ftype);                if (fieldToString(ftype, fdata, buf, 40) == -1) {                        fprintf(myIpfixPrinter->stream, "Error converting field");                        continue;		        }                int j;                if (strlen(buf) < flen) for (j = 0; j < flen-strlen(buf); j++) fprintf(myIpfixPrinter->stream, " ");                fprintf(myIpfixPrinter->stream, "%s", buf);	        }        fprintf(myIpfixPrinter->stream, "\n");        return 0;        }