Code Monkey home page Code Monkey logo

Comments (4)

biluohc avatar biluohc commented on May 23, 2024

rust也没有这个 lastnull。
所以是不是把没有lastnull的语言的chopnull去掉,否则相对c/cpp语言是不公平的?

from swapview-rosetta.

lilydjwg avatar lilydjwg commented on May 23, 2024

这里是指 cmdline 里最后可能的 null 字节,不是编程语言的字符串实现里可能有的那个。

正常的 cmdline 文件里,参数都是以 null 结尾的(而不是以 null 分割的),所以不删掉直接转成空格的话最后就有一个空格,不好看。但是有些程序不知道干了什么,最后并没有 null 字符,这个时候就不应该把最后一个字节丢掉了。

from swapview-rosetta.

biluohc avatar biluohc commented on May 23, 2024

我明白了, 就是c/cpp之类不需要chopnull,而那些字符串里可以有\0的就要chopnull了是吧?

from swapview-rosetta.

lilydjwg avatar lilydjwg commented on May 23, 2024

都需要的。

from swapview-rosetta.

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.