L4Re/departure

Annotated fsaccess/input.h

360:92c5f6aa8c36
2022-06-12 Paul Boddie Reintroduced PagerObject code generation required to initiate servers. mmap-region-flags
paul@294 1
/*
paul@294 2
 * Elementary input utilities.
paul@294 3
 *
paul@294 4
 * Copyright (C) 2022 Paul Boddie <paul@boddie.org.uk>
paul@294 5
 *
paul@294 6
 * This program is free software; you can redistribute it and/or
paul@294 7
 * modify it under the terms of the GNU General Public License as
paul@294 8
 * published by the Free Software Foundation; either version 2 of
paul@294 9
 * the License, or (at your option) any later version.
paul@294 10
 *
paul@294 11
 * This program is distributed in the hope that it will be useful,
paul@294 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
paul@294 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
paul@294 14
 * GNU General Public License for more details.
paul@294 15
 *
paul@294 16
 * You should have received a copy of the GNU General Public License
paul@294 17
 * along with this program; if not, write to the Free Software
paul@294 18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
paul@294 19
 * Boston, MA  02110-1301, USA
paul@294 20
 */
paul@294 21
paul@294 22
#pragma once
paul@294 23
paul@294 24
#include <stdio.h>
paul@294 25
paul@294 26
struct read_line_state
paul@294 27
{
paul@294 28
    char *buffer, *start, *end, *eolp;
paul@294 29
    size_t buffer_size, remaining;
paul@294 30
};
paul@294 31
paul@294 32
void parse_line(char *start, char *end, int *num_args, char *args[],
paul@294 33
                const int max_args);
paul@294 34
paul@294 35
char *read_line(FILE *fp, struct read_line_state *state);
paul@294 36
paul@294 37
/* vim: tabstop=4 expandtab shiftwidth=4
paul@294 38
*/