Edit

kc3-lang/kc3/ikc3/buf_linenoise.h

Branch :

  • ikc3/buf_linenoise.h
  • /* kc3
     * Copyright 2022,2023,2024 kmx.io <contact@kmx.io>
     *
     * Permission is hereby granted to use this software granted the above
     * copyright notice and this permission paragraph are included in all
     * copies and substantial portions of this software.
     *
     * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
     * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
     * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
     * THIS SOFTWARE.
     */
    /**
     * @file buf_linenoise.h
     * @brief Linenoise backend for s_buf.
     */
    #ifndef IC3_BUF_LINENOISE_H
    #define IC3_BUF_LINENOISE_H
    
    void    buf_linenoise_close (s_buf *buf, const char *history_path);
    s_buf * buf_linenoise_open_r (s_buf *buf, const char *prompt,
                                  const char *history_path);
    
    #endif /* IC3_BUF_LINENOISE_H */