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
#include "OrderFormatter.h"

#include <stdio.h>

void format_order(Order *order, char *buffer, size_t buffer_size) {
  if (order == (Order *)0) {
    snprintf(buffer, buffer_size, "empty order");
    return;
  }
  snprintf(buffer, buffer_size, "%s has %zu items worth %.2f", [order customer],
           [order itemCount], [order total]);
}