lsp-cli 0.1.6

Command-line tool for talking to Language Server Protocol (LSP) servers from the terminal.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

#include "order.h"

void format_order(const Order *order, char *buffer, size_t buffer_size) {
    snprintf(
        buffer,
        buffer_size,
        "%s has %zu items worth %.2f",
        order->customer,
        order->item_count,
        order_total(order)
    );
}