Exemplo
#include <stdio.h>
#include <string.h>
int main ()
{
char str[50];
strcpy(str,"This is string.h library function");| buildscript { | |
| repositories { | |
| // Adds the jcenter repository | |
| jcenter() | |
| // Add minecraft forge repositories | |
| maven { url = "http://files.minecraftforge.net/maven" } | |
| } | |
| dependencies { | |
| classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' | |
| } |
| #include <stdio.h> | |
| #include <arpa/inet.h> //INET6_ADDRSTRLEN | |
| #include <miniupnpc/miniupnpc.h> | |
| #include <miniupnpc/upnpcommands.h> | |
| int main(int argc, char *argv[]) { | |
| int error = 0; | |
| //get a list of upnp devices (asks on the broadcast address and returns the responses) | |
| struct UPNPDev *upnp_dev = upnpDiscover(1000, //timeout in milliseconds | |
| NULL, //multicast address, default = "239.255.255.250" |
| // The comments with [HTTPS FIX] tag refers to the parts that fixes the issue. | |
| buildscript { | |
| repositories { | |
| // [HTTPS FIX] Replace mavenCentral() with the code block below | |
| maven { | |
| url "https://repo1.maven.org/maven2" | |
| } |
| """""""""""""""""""""""""""""""""""""""" | |
| " CONFIGURAÇÕES GOGS - WWW.GOGS.COM.BR " | |
| """""""""""""""""""""""""""""""""""""""" | |
| set number " Numera as linhas | |
| set linebreak " Quebra a linha sem quebrar a palavra | |
| set nobackup " Não salva arquivos de backup~ | |
| set wildmode=longest,list " Completa o comando com TAB igual o bash | |
| set ignorecase " Ignora o case sensitive nas buscas | |
| set smartcase " Se tiver alguma letra maiúscula, ativa o case sensitive | |
| set gdefault " Sempre substitui todas as palavras, não só a primeira |
Exemplo
#include <stdio.h>
#include <string.h>
int main ()
{
char str[50];
strcpy(str,"This is string.h library function");| @echo off | |
| :: ie4uinit.exe -show | |
| ie4uinit.exe -ClearIconCache | |
| taskkill /IM explorer.exe /F | |
| del /A /Q "%localappdata%\IconCache.db" | |
| del /A /F /Q "%localappdata%\Microsoft\Windows\Explorer\iconcache*" | |
| shutdown /r /f /t 00 |
| /* A key/value dict system in C */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define TEST TRUE /* Comment this line out to compile without a main function (used when including into another application). */ | |
| typedef struct dict_t_struct { | |
| char *key; | |
| void *value; |
There are lots of cases that you can improve. The examples use nullable reference types, but only the WhenNotNull example requires it.
Consider adopting the new property pattern, wherever you use IsNullOrEmpty.
string? hello = "hello world";| // Simple LibWebSockets test client | |
| ////////////////////////////////////////////////////////////////////////// | |
| #include "stdafx.h" | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <signal.h> | |
| #include "libwebsocket/libwebsockets.h" |