extract_as_from_fla.cpp
来自「一个开源的Flash 播放器,可以在Windows/Linux 上运行」· C++ 代码 · 共 36 行
CPP
36 行
// extract_as_from_fla.cpp -- Thatcher Ulrich <tu@tulrich.com> 2005
// This source code has been donated to the Public Domain. Do
// whatever you want with it.
// Try to extract ActionScript source out of a .fla file.
//
// Flash seems to store text as UCS-16, so basically we can try
// removing 0 characters.
#include <stdio.h>
int main()
{
int char_count = 0;
for (; !feof(stdin); )
{
int c = fgetc(stdin);
char_count++;
if (c == 0)
{
// ignore
// printf("zero");
}
else
{
// fputc(c, stdout);
}
// fflush(stdout);
}
printf("%d chars\n", char_count);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?