Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  fileUtil.ml   Sprache: SML

 
(************************************************************************)
(*         *      The Rocq Prover / The Rocq Development Team           *)
(*  v      *         Copyright INRIA, CNRS and contributors             *)
(* <O___,, * (see version control and CREDITS file for authors & dates) *)
(*   \VV/  **************************************************************)
(*    //   *    This file is distributed under the terms of the         *)
(*         *     GNU Lesser General Public License Version 2.1          *)
(*         *     (see LICENSE file for the text of the license)         *)
(************************************************************************)

let copy src dst =
  let cin = open_in src in
  try
    let cout = open_out dst in
    try
      while true do
        output_char cout (input_char cin)
      done
    with End_of_file -> close_out cout; close_in cin
  with Sys_error e -> Printf.eprintf "%s\n" e; exit 1

let check_if_file_exists f =
  if not (Sys.file_exists f) then begin
    Printf.eprintf "coqdoc: %s: no such file\n" f;
    exit 1
  end

(* [files_from_file f] returns the list of file names contained in the
   file named [f]. These file names must be separated by spaces,
   tabulations or newlines. *)

let files_from_file f =
  let files_from_channel ch =
    let buf = Buffer.create 80 in
    let l = ref [] in
    try
      while true do
        match input_char ch with
        | ' ' | '\t' | '\n' ->
          if Buffer.length buf > 0 then l := Buffer.contents buf :: !l;
          Buffer.clear buf
        | c -> Buffer.add_char buf c
      done;
      []
    with End_of_file -> List.rev !l
  in
  try
    check_if_file_exists f;
    let ch = open_in f in
    let l = files_from_channel ch in
    close_in ch; l
  with Sys_error s ->
    Printf.eprintf "coqdoc: cannot read from file %s (%s)\n" f s;
    exit 1

Messung V0.5
C=95 H=97 G=95

¤ Dauer der Verarbeitung: 0.19 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge