Landfall

Annotated pkg/landfall-examples/dl_test_data/dl_test_data.c

273:8f6ff113d000
8 months ago Paul Boddie Removed debugging output. cpm-library-improvements
paul@22 1
/*
paul@22 2
 * Test dynamic loading.
paul@22 3
 *
paul@31 4
 * Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
paul@22 5
 *
paul@22 6
 * This program is free software; you can redistribute it and/or
paul@22 7
 * modify it under the terms of the GNU General Public License as
paul@22 8
 * published by the Free Software Foundation; either version 2 of
paul@22 9
 * the License, or (at your option) any later version.
paul@22 10
 *
paul@22 11
 * This program is distributed in the hope that it will be useful,
paul@22 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
paul@22 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
paul@22 14
 * GNU General Public License for more details.
paul@22 15
 *
paul@22 16
 * You should have received a copy of the GNU General Public License
paul@22 17
 * along with this program; if not, write to the Free Software
paul@22 18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
paul@22 19
 * Boston, MA  02110-1301, USA
paul@22 20
 */
paul@22 21
paul@22 22
static const char *buffer = "Hello shared!";
paul@22 23
paul@22 24
const char *get_data(void);
paul@22 25
paul@22 26
const char *get_data(void)
paul@22 27
{
paul@22 28
  return buffer;
paul@22 29
}