...
"require": {
"vendor/package": "1.3.2", // exactly 1.3.2 (exact)
// >, <, >=, <= | specify upper / lower bounds
"vendor/package": ">=1.3.2", // anything above or equal to 1.3.2
"vendor/package": "<1.3.2", // anything below 1.3.2
// * | wildcard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
unsigned getbits(unsigned, int, int); | |
unsigned setbits(unsigned, int, int, unsigned); | |
int main(void) | |
{ | |
int n; | |
int x, y; | |
n = 58 ^ 20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void squeeze(char s1[], char s2[]); | |
int main(void) | |
{ | |
char s1[] = "bad boys for life"; | |
char s2[] = "bad "; | |
squeeze(s1, s2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int isdigit(int); | |
int islower(int); | |
int isupper(int); | |
int tolower(int); | |
int toupper(int); | |
int isspace(int); | |
int isprint(int); | |
void capitalize(char s[]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun counsel-projectile-bookmark () | |
"Forward to `bookmark-jump' or `bookmark-set' if bookmark doesn't exist." | |
(interactive) | |
(require 'bookmark) | |
(let ((projectile-bookmarks (projectile-bookmarks))) | |
(ivy-read "Create or jump to bookmark: " | |
projectile-bookmarks | |
:action (lambda (x) | |
(cond ((and counsel-bookmark-avoid-dired | |
(member x projectile-bookmarks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define EOL '\n' | |
int main(void) | |
{ | |
int i, c, p; | |
while ((c = getchar()) != EOF) { | |
if (c == '/') { | |
if ((i = getchar()) == '/') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
char t; | |
int n; | |
int pc, c, nc, nw; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void emptyCharArray(char s[], int length) | |
{ | |
for (int n = length; n > 0; --n) | |
s[n] = 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define MAX 1000 | |
int i; | |
char line[MAX]; | |
char longest[MAX]; | |
int length(void); | |
void copy(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int i; | |
void declarei(void); | |
void printi(void); | |
void incrementedi(void); | |
int main() | |
{ | |
declarei(); |