ggentropy

A string formatting library for C++
Log | Files | Refs | README

commit 19e44042408e6212ee9e62d5da5fee0bface481c
parent c1d9f4cf2cc34e0daec5f7ee00d27d8b8d156f38
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu,  9 Jul 2020 13:01:13 +0300

Appveyor

Diffstat:
Aappveyor.yml | 16++++++++++++++++
Atest.cpp | 17+++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/appveyor.yml b/appveyor.yml @@ -0,0 +1,16 @@ +version: "{build}" +clone_depth: 1 +image: +- Visual Studio 2019 +- macOS +- Ubuntu + +environment: + APPVEYOR_YML_DISABLE_PS_LINUX: true + +build_script: +- cmd: call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat" x86_amd64 +- cmd: cl.exe /W4 ggentropy.cpp test.cpp +- cmd: ggentropy +- sh: g++ -Wall -Wextra -o ggentropy ggentropy.cpp test.cpp +- sh: ./ggentropy diff --git a/test.cpp b/test.cpp @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <stdint.h> +#include <inttypes.h> +#include "ggentropy.h" + +int main() { + uint8_t entropy[ 16 ]; + if( !ggentropy( entropy, sizeof( entropy ) ) ) + return 1; + + for( size_t i = 0; i < sizeof( entropy ); i++ ) { + printf( "%02" PRIx8, entropy[ i ] ); + } + printf( "\n" ); + + return 0; +}