What is the translation of " ФУНКЦИЯ MALLOC " in English?

Examples of using Функция malloc in Russian and their translations into English

{-}
  • Official category close
  • Colloquial category close
Пусть в программе функция malloc() используется 1000 раз.
Assume the malloc() function is used 1000 times in the code.
Если функция malloc не смогла выделить буфер памяти, то она возвращает NULL.
If the malloc function is unable to allocate the memory buffer, it returns NULL.
Подробнее с данным вопросом можно познакомиться в записи блога на нашем сайте" Магические константы и функция malloc.
To learn more about it see the blog-post on our site" Magic constants and malloc() function.
Функция malloc() принимает аргумент memsize- типа и 5 гигабайт- вполне подходящее число.
Just because the malloc() function possesses an argument of memsize type and 5 is quite an appropriate value.
Кстати, существует еще одно оправдание разработчиков,почему они не проверяют, что вернула функция malloc.
By the way, there is another excuse for developers,why they don't check what the malloc function returned.
Поскольку заголовочный файл" stdlib. h" не подключен,компилятор языка Си считает, что функция malloc вернет тип int.
As the header file"stdlib. h" is disabled,the C compiler considers that malloc function will return int type.
Если функция malloc не смогла выделить память, то вряд ли моя программа продолжит функционировать должным образом.
If the malloc function failed to allocate memory, it is unlikely that my program will continue to function properly.
Если заголовочный файл" stdlib. h" не подключен,компилятор языка Си считает, что функция malloc вернет тип int.
If the header file"stdlib. h" is not included,the C compiler supposes that the malloc function will return the int type.
Единственный способ написать надежный и правильный код- это всегда проверять результат, который вернула функция malloc.
The only way to write reliable and correct code is to always check the result that is returned by the malloc function.
Теперь анализатор считает, что функция malloc не может вернуть NULL и не будет выдавать предупреждение V522 для следующего фрагмента кода.
Now the analyzer thinks that the malloc function cannot return NULL and, therefore, will not issue the V522 warning for the following code.
Иногда возникает желание изменить поведение анализатора и заставить его считать,что, например, функция malloc не может вернуть NULL.
Sometimes you may want to change the analyzer's behavior and make it think,for example, that malloc cannot return NULL.
Рассматривая свеженаписанный фрагмент, сложно предположить, что функция malloc работает в нем неправильно из-за того, что не подключен заголовочный файл stdlib. h.
Looking at a fresh code fragment, it's not easy to assume that the malloc function works incorrectly, because the header file stdlib.h is not included.
Иногда у наших пользователей возникает желание изменить поведение анализатора и заставить его считать,что, например, функция malloc не может вернуть NULL.
Sometimes our users wish to change the analyzer's behavior andmake it think that malloc cannot return NULL.
Любая нормальная программа должна проверять указатели, которые возвращает функция malloc, и соответствующим образом обрабатывать ситуацию, когда память выделить не получилось.
Any normal program should check the pointers which the malloc function returns and properly handle the situation when the memory allocation failed.
Я не придумываю, я не раз общался с людьми, которые считают такой подход уместным исознательно никогда не проверяющих результат, который возвращает функция malloc.
I'm not making this up, I have talked with people who consider this approach to be appropriate andconsciously never check the result that the malloc function returns.
Это шестая часть,которая будет посвящена функции malloc.
This is the 6th part,which focuses on the malloc function.
Тем не менее, найденных дефектов нам будет достаточно для обсуждения функции malloc.
However, the found defects will be enough for us to discuss the malloc function.
В C такое выделение обычно осуществляется функцией malloc или оператором new.
In C++, this allocation is usually performed by the malloc function or new operator.
Надеюсь, теперь вы по-новому взглянете на функцию malloc, проверки указателей в коде и предупреждения анализатора PVS- Studio.
I hope now you have a new look at the malloc function, check pointers and warnings of the PVS-Studio code analyzer.
Есть сразу 4 причины, каждой из которых достаточно, чтобы обязательно делать проверки после вызова функции malloc.
There are 4 reasons at once, each of them is enough to prove that it is so necessary to write a check after you call the malloc function.
Он утверждает, что они понимают, что делают, когда не проверяют результат вызова функции malloc.
He argues that they understand what they are doing when they don't check the result of the malloc function call.
Анализатор обнаружил потенциальную ошибку, связанную с использованием опасного выражения, являющегося фактическим аргументом для функции malloc.
The analyzer detected a potential error relating to using a dangerous expression serving as an actual argument for malloc function.
В статье под функцией malloc часто будет подразумеваться, что речь идет не только именно об этой функции, но и о calloc, realloc,_ aligned_ malloc,_ recalloc, strdup и так далее.
In the article under the function malloc it will often be implied that the question is not only about this function, but also of calloc, realloc,_aligned_malloc, _recalloc, and so on.
Например, можно написать свою функцию malloc(), которая время от времени будет возвращать NULL, даже если память еще есть.
For instance, you can write your own function malloc() that will return NULL from time to time even when there is some memory left.
Анализатор обнаружил ошибку, связанную с тем, что память для функции getline()была выделена без использования функции malloc()/ realloc.
The analyzer detected an error that has to do with allocating memory for the getline()function without using the function malloc()/realloc.
Посмотрев определение функции malloc, мы увидим, что ее формальный аргумент, задающий размер выделяемой памяти, представлен типом size_ t.
Looking through the definition of function malloc we will see that its formal argument assigning the size of the allocated memory is represented by type size_t.
По этой причине анонимное отображение схоже с функцией malloc и используется в некоторых реализациях malloc для определенных размещений.
In this respect an anonymous mapping is similar to malloc, and is used in some malloc(3) implementations for certain allocations.
Пул памяти, также называемый, выделением блоков фиксированного размера-это использование пула( ов) для управления памятью, что обеспечивает динамическое распределение памяти, сопоставимое с функцией malloc или с оператором new на C.
Memory pools, also called fixed-size blocks allocation,is the use of pools for memory management that allows dynamic memory allocation comparable to malloc or C++'s operator new.
Обычная техника эксплойта для переполнения буфера кучи- перезапись ссылок динамической памяти( например, метаданных функции malloc) и использование полученного измененного указателя для перезаписи указателя на функцию программы.
The canonical heap overflow technique overwrites dynamic memory allocation linkage(such as malloc meta data) and uses the resulting pointer exchange to overwrite a program function pointer.
Согласно определению в функции malloc() аргумент, определяющий размер выделяемой памяти имеет тип size_ t.
According to the definition of the malloc() function, the argument which determines the size of the allocated memory is of the size_t type.
Results: 63, Time: 0.0653

Word-for-word translation

Top dictionary queries

Russian - English