Release examples as public domain.
This commit is contained in:
parent
ad19d60493
commit
ee12a01e52
|
@ -1,3 +1,7 @@
|
||||||
|
# A simple Makefile to build the examples in this directory.
|
||||||
|
#
|
||||||
|
# This example file is released to the public domain.
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
PKG_CONFIG = pkg-config
|
PKG_CONFIG = pkg-config
|
||||||
CFLAGS = -g -Wall $(shell $(PKG_CONFIG) --cflags libserialport)
|
CFLAGS = -g -Wall $(shell $(PKG_CONFIG) --cflags libserialport)
|
||||||
|
|
|
@ -22,3 +22,5 @@ paths in your environment to suit your system.
|
||||||
You can also build these examples using any other compiler, IDE or build
|
You can also build these examples using any other compiler, IDE or build
|
||||||
system. You just need the libserialport.h header available to compile them,
|
system. You just need the libserialport.h header available to compile them,
|
||||||
and the libserialport library available to link and run them.
|
and the libserialport library available to link and run them.
|
||||||
|
|
||||||
|
These example files are hereby released into the public domain by the author.
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#include <libserialport.h>
|
#include <libserialport.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/* Example of how to get a list of serial ports on the system. */
|
/* Example of how to get a list of serial ports on the system.
|
||||||
|
*
|
||||||
|
* This example file is released to the public domain. */
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#include <libserialport.h>
|
#include <libserialport.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/* Example of how to get information about a serial port. */
|
/* Example of how to get information about a serial port.
|
||||||
|
*
|
||||||
|
* This example file is released to the public domain. */
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue