Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: printf

How to pack printf () into a function or macro?

This sounds a bit like an interview question, but it is actually an actual question.

I am using an embedded platform and only provide this​​ The equivalent of these functions:

> printf(

October 4, 2021By Simo C & C++ function, How to, macro, Packaging, printfLeave a Comment

PRINTF parameter is insufficient

My question is about the behavior after printf with missing parameters:

printf(“%s blah blah %d “, int); // integer was given as argument (and not int written) I already know that if the form

September 29, 2021By Simo C & C++ insufficient, parameters, printfLeave a Comment

STM32’s printf () function serial port redirection (HAL library standard library)

1. Create a project

2. Core: add a new file usar_fputc.c (name whatever you want), add the file to the project Go

#include “stdio.h”
  #include “stm32f1xx_hal.h”

extern UART_Handl

September 24, 2021By Simo Motherboard all, applicable, function, HAL, Library, printf, redirection, serial port, Standard, STM, STM32Leave a Comment

C – Why is PRINTF round floating point number?

I am trying to use printf to print some floating point numbers.
For example:

int main()
{
printf(“%.1f”,76.75);
return 0;
} Output: 76.8

I have some results Question.

First o

August 22, 2021By Simo C & C++ circular, floating point, printf, whyLeave a Comment
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress