Archived
1
Fork 0
This repository has been archived on 2024-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
kilo/include/erow.h

26 lines
573 B
C
Raw Permalink Normal View History

#ifndef EROW_H
#define EROW_H
#include <stdlib.h>
2023-09-08 20:32:29 +00:00
struct buffer;
struct erow {
char *chars;
size_t n_chars;
char *rchars;
size_t n_rchars;
struct buffer *buffer;
};
struct erow *erow_create(const char* chars, size_t n_chars, struct buffer *buffer);
void erow_insert_chars(struct erow *erow, const char *chars, size_t n_chars, int at);
2023-09-08 20:32:29 +00:00
void erow_delete_chars(struct erow *erow, size_t n_chars, int at);
int erow_cx_to_rx(struct erow *erow, int cx);
int erow_rx_to_cx(struct erow *erow, int rx);
void erow_free(struct erow *erow);
#endif // EROW_H