Skip to content

Instantly share code, notes, and snippets.

@Roo4L
Roo4L / draw.c
Created May 16, 2020 16:33
graphviz drawing
#include <graphviz/cgraph.h>
#include <graphviz/gvc.h>
#include <stdio.h>
#include <stdlib.h>
#include "main.h"
#define P_LEN 15
#define max(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "main.h"
void timing(int list_len) {
TREE *tree;
tree = (TREE *)malloc(sizeof(TREE));
tree->N = list_len;
tree->root = NULL;
05-06 05:28:57.633 11499 11520 D bt_btif_dm: remote version info [a0:a4:c5:68:0f:dc]: 0, 0, 0
05-06 05:28:57.979 11499 11520 D bt_btif_config: btif_get_device_type: Device [a0:a4:c5:68:0f:dc] type 1
05-06 05:28:57.997 11499 11520 D bt_btif_config: btif_get_device_type: Device [a0:a4:c5:68:0f:dc] type 1
05-06 05:28:57.997 11499 11520 I bt_btif_dm: get_cod remote_cod = 0x000c010c
05-06 05:28:57.997 11499 11520 I BluetoothBondStateMachine: bondStateChangeCallback: Status: 0 Address: A0:A4:C5:68:0F:DC newState: 1
05-06 05:28:57.997 11499 11520 I bt_btif_dm: get_cod remote_cod = 0x000c010c
05-06 05:28:58.000 11499 11526 I BluetoothBondStateMachine: Bond State Change Intent:A0:A4:C5:68:0F:DC OldState: 10 NewState: 11
05-06 05:28:58.001 11499 11526 I BluetoothBondStateMachine: Entering PendingCommandState State
05-06 05:28:58.903 11499 11520 D bt_btif_config: btif_get_device_type: Device [a0:a4:c5:68:0f:dc] type 1
05-06 05:28:58.903 11499 11520 I bt_btif_dm: get_cod remote_cod = 0x000c010c
@Roo4L
Roo4L / lab4a.c
Created April 19, 2020 09:11
lab4a
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#define SIZE 3
typedef struct Item item;
typedef struct database db;
typedef struct key_dimension kdim;