summaryrefslogtreecommitdiff
path: root/futility/cmd_hey.c
blob: efd47d39c76a877c6f7212aed24afb6211861fe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include <stdio.h>

#include "futility.h"

static int do_something(int argc, char *argv[])
{
  int i;
  printf("this is %s\n", __func__);
  for (i = 0; i < argc; i++)
    printf("argv[%d] = %s\n", i, argv[i]);
  return 0;
}

DECLARE_FUTIL_COMMAND(hey, do_something, "shout");