# DisplayOutput Example Function

The following function examples call this example function:

...

    ESSG_VOID_T DisplayOutput(ESSG_PPDATA_T ppDataOut,
                ESSG_RANGE_T pRangeOut)
    {
       ESSG_ULONG_T   RowIndx, ColIndx;

       for(RowIndx = 0; RowIndx < pRangeOut.ulNumRows;
        RowIndx++)
      {
         for (ColIndx = 0; ColIndx <
               pRangeOut.ulNumColumns; ColIndx++)
         {
           switch(ppDataOut[RowIndx][ColIndx].usType)
           {
              case(ESSG_DT_STRING):
                printf("%s",
                       ppDataOut[RowIndx][ColIndx].Value.pszStr+1);
                break;
              case(ESSG_DT_LONG):
                printf("%ld",
                      ppDataOut[RowIndx][ColIndx].Value.lData);
                break;
              case(ESSG_DT_DOUBLE):
                printf("%g",
                       ppDataOut[RowIndx][ColIndx].Value.dblData);
                break;
              case(ESSG_DT_BLANK):
                break;
              case(ESSG_DT_RESERVED):
                printf("#Reserved");
                break;
              case(ESSG_DT_ERROR):
                printf("#Error");
                break;
              case(ESSG_DT_MISSING):
                printf("#Missing");
                break;
              case(ESSG_DT_ZERO):
                printf("%ld",
                       ppDataOut[RowIndx][ColIndx].Value.lData);
                break;
              case(ESSG_DT_NOACCESS):
                printf("#NoAccess");
                break;
              case(ESSG_DT_MEMBER):
                printf("%s",
                       ppDataOut[RowIndx][ColIndx].Value.pszStr+1);
                break;
              default:
                break;
           }

              If (ColIndx < pRangeOut.ulNumColumns - 1)
                printf(",");
           }
              printf("\n");
      }
    }