/****************************************************************************** * $Id: string.c,v 1.3 1993/12/24 14:48:17 courtel Exp $ * * Kind: C library of functions * Abstract: Display the current state of descriptors 0 - 63 for debugging * * Copyright 1990 - 1993 Centre d'Etudes de la Navigation Aerienne (CENA) * * PARADISE is free software; you can redistribute it and/or modify it * under the terms of the GNU Library General Public License * as published by the Free Software Foundation; * * PARADISE is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with PARADISE; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. ******************************************************************************/ #include #include static int n = howmany (64, NFDBITS); void Sprintf(s, arg) char *s; fd_set *arg; { register i; for (i = 0; i < n; i++) sprintf (s + 8 * i, "%08X", arg->fds_bits[n - i - 1]); }