/******************************************************************************
*
* Projet    : DilibSgml
* Module    : SgmlString
* Fichier   : SgmlPrint.c
* Auteur    : Ducloy
*
****************************************************************************
*
* Copyright (c) 1994 CNRS/CRIN & INRIA Lorraine
* 
****************************************************************************
*				     SgmlPrint.c 
*
*
*        Fonctions d'impression d'une structure Sgml
*
*******************************************************************************/


#include "SgmlString.h"

#include <string.h>
#include <stdio.h>

/****************************************************************************** 
 *                              SgmlPrint
 *
 * - Fonction récursive qui imprime les données de la structure complète
 *
 * - Les paramètres : 
 *		- noeud : pointeur sur la structure 
 *
 *
 * Auteur : J. DUCLOY & V. WARTH
 * Date : 1993
 *
 ******************************************************************************/

void	SgmlFilePrint(file, noeud)
     FILE *file;
     SgmlNode	*noeud;

{ 
  char *strPrint;
  if (noeud)
    {
      fprintf(file, "%s", strPrint=SgmlToStringPtr(noeud));
    }
}

void SgmlPrint(noeud)
     SgmlNode *noeud;
{
  SgmlFilePrint(stdout, noeud);
}




