GithubHelp home page GithubHelp logo

Comments (5)

Zxilly avatar Zxilly commented on June 14, 2024

请把代码格式化好,我看不明白

from ua2f.

Zxilly avatar Zxilly commented on June 14, 2024

还有,没必要每次回复都开个新issue,请在同一个issue中完成

from ua2f.

Diciya avatar Diciya commented on June 14, 2024

还有,没必要每次回复都开个新issue,请在同一个issue中完成

static char str1[74]={"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)"}; #添加一个电脑UA;

int i;#在int main()中添加一个计数变量i;

str = malloc(sizeof_buf);
for(i=0; i<sizeof_buf; i++){
memset(str+i, str1[i] ,1); #sizeof_buf长度的赋值为电脑ua
}

if (sizeof_buf > 74) {
for(i=75; i<sizeof_buf; i++)
memset(str+i, ' ' ,1); #超过电脑UA的全部赋值为空格
}

from ua2f.

Diciya avatar Diciya commented on June 14, 2024

还有,没必要每次回复都开个新issue,请在同一个issue中完成

总之就是把一个电脑ua一个字符一个字符的进行赋值,不够的补空格。

from ua2f.

Zxilly avatar Zxilly commented on June 14, 2024

你直接memcpy字符串不好吗,我觉得你的代码能力不太够,最好不要乱动

from ua2f.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.