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
class creport: | |
def __init__(self, string): | |
if isinstance(string,list): | |
self.modlist = string; | |
else: # assume its a string | |
self.modlist = string.split('\n'); | |
for i in range(len(self.modlist)): | |
self.modlist[i] = self.modlist[i].split('|')[0:-1] | |
for j in range(len(self.modlist[i])): | |
self.modlist[i][j] = self.modlist[i][j].strip(); |
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(){ | |
unsigned char a = 0xFF; | |
printf("%x, %i, %i\n", a,a, (char)a); | |
return 0; | |
} | |
// result ff, 255, -1 |